summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorschneefux <schneefux+commit@schneefux.xyz>2014-09-11 14:01:42 +0200
committerschneefux <schneefux+commit@schneefux.xyz>2014-09-11 10:41:15 -0400
commit330d23aaf13734e757e1b108be0a6a8720cde316 (patch)
treeeb0b4729ed9d9e35bcff1e60a53db813d7978487
parent2b5a568ec2d2673fb3489c7b7060198ebdd74778 (diff)
downloadjasper-client-330d23aaf13734e757e1b108be0a6a8720cde316.tar.gz
jasper-client-330d23aaf13734e757e1b108be0a6a8720cde316.zip
Add client folder to sys.path
Otherwise this would cause bugs in client.brain
-rwxr-xr-xjasper.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/jasper.py b/jasper.py
index f40dfb1..7e84cd2 100755
--- a/jasper.py
+++ b/jasper.py
@@ -18,7 +18,10 @@ if not jasper_home or not os.path.exists(jasper_home):
sys.exit(0)
# Change CWD to $JASPER_HOME/jasper/client
-os.chdir(os.path.join(os.getenv("JASPER_HOME"), "jasper" , "client"))
+client_path = os.path.join(os.getenv("JASPER_HOME"), "jasper" , "client")
+os.chdir(client_path)
+# Add $JASPER_HOME/jasper/client to sys.path
+sys.path.append(client_path)
# Set $LD_LIBRARY_PATH
os.environ["LD_LIBRARY_PATH"] = "/usr/local/lib"