From 330d23aaf13734e757e1b108be0a6a8720cde316 Mon Sep 17 00:00:00 2001 From: schneefux Date: Thu, 11 Sep 2014 14:01:42 +0200 Subject: Add client folder to sys.path Otherwise this would cause bugs in client.brain --- jasper.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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" -- cgit v1.3.1