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:
Christoph Heiss 2017-03-01 21:48:13 +01:00
parent 3912d9f43f
commit 048042d1b1

View file

@ -1,3 +1,4 @@
from sys import path
from os.path import abspath
path.append(abspath("Shared"))
from os.path import abspath, dirname, realpath, join
path.append(join(abspath(dirname(realpath(__file__))), 'Shared'))