allow calling with directory name
This commit is contained in:
parent
998eea3032
commit
8a0598916f
1 changed files with 1 additions and 1 deletions
2
make.py
2
make.py
|
@ -26,7 +26,7 @@ if len(sys.argv) < 2:
|
||||||
print "you must specify a project-name as first argument, eg. './make.py sotmeu14'"
|
print "you must specify a project-name as first argument, eg. './make.py sotmeu14'"
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
||||||
projectname = sys.argv[1]
|
projectname = sys.argv[1].strip('/')
|
||||||
try:
|
try:
|
||||||
sys.path.append(projectname)
|
sys.path.append(projectname)
|
||||||
project = __import__(projectname)
|
project = __import__(projectname)
|
||||||
|
|
Loading…
Add table
Reference in a new issue