From 048042d1b15350cf0139dc59eae9103b4d1f5e35 Mon Sep 17 00:00:00 2001 From: Christoph Heiss Date: Wed, 1 Mar 2017 21:48:13 +0100 Subject: [PATCH] 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. --- fl0w.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/fl0w.py b/fl0w.py index a446800..bac79b4 100644 --- a/fl0w.py +++ b/fl0w.py @@ -1,3 +1,4 @@ from sys import path -from os.path import abspath -path.append(abspath("Shared")) \ No newline at end of file +from os.path import abspath, dirname, realpath, join + +path.append(join(abspath(dirname(realpath(__file__))), 'Shared'))