Fix appending of the 'Shared'-folder to the python search path.
It assumed that 'Shared' was in the current working directory, which may not be always true.
This commit is contained in:
parent
3912d9f43f
commit
048042d1b1
1 changed files with 3 additions and 2 deletions
5
fl0w.py
5
fl0w.py
|
@ -1,3 +1,4 @@
|
||||||
from sys import path
|
from sys import path
|
||||||
from os.path import abspath
|
from os.path import abspath, dirname, realpath, join
|
||||||
path.append(abspath("Shared"))
|
|
||||||
|
path.append(join(abspath(dirname(realpath(__file__))), 'Shared'))
|
||||||
|
|
Reference in a new issue