diff options
| author | schneefux <schneefux+commit@schneefux.xyz> | 2014-09-11 14:01:42 +0200 |
|---|---|---|
| committer | schneefux <schneefux+commit@schneefux.xyz> | 2014-09-11 10:41:15 -0400 |
| commit | 330d23aaf13734e757e1b108be0a6a8720cde316 (patch) | |
| tree | eb0b4729ed9d9e35bcff1e60a53db813d7978487 /jasper.py | |
| parent | 2b5a568ec2d2673fb3489c7b7060198ebdd74778 (diff) | |
| download | jasper-client-330d23aaf13734e757e1b108be0a6a8720cde316.tar.gz jasper-client-330d23aaf13734e757e1b108be0a6a8720cde316.zip | |
Add client folder to sys.path
Otherwise this would cause bugs in client.brain
Diffstat (limited to 'jasper.py')
| -rwxr-xr-x | jasper.py | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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" |
