summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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"