exists to isdir, thanks Niphlod
This commit is contained in:
committed by
Michele Comitini
parent
9aee01df62
commit
44f5c0c824
@@ -36,7 +36,7 @@ path = os.path.dirname(os.path.abspath(__file__))
|
||||
|
||||
# os.chdir(path) ?
|
||||
|
||||
if not os.path.exists('applications'):
|
||||
if not os.path.isdir('applications'):
|
||||
raise RuntimeError('Running from the wrong folder')
|
||||
|
||||
sys.path = [path] + [p for p in sys.path if not p == path]
|
||||
|
||||
Reference in New Issue
Block a user