Permalink
Browse files

Update bigjob/bigjob_manager.py

fixing bj bootstrap
  • Loading branch information...
1 parent 0878f24 commit 3f57147d86de55afdba4f5ce8757a00950a0ca94 @icheckmate icheckmate committed Dec 5, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 bigjob/bigjob_manager.py
View
4 bigjob/bigjob_manager.py
@@ -604,12 +604,12 @@ def __generate_bootstrap_script(self, coordination_host, coordination_namespace,
os.system("/usr/bin/env")
try:
os.system("python " + BOOTSTRAP_FILE + " " + BIGJOB_PYTHON_DIR);
- activate_this = BIGJOB_PYTHON_DIR+'bin/activate_this.py';
+ activate_this = os.path.join(BIGJOB_PYTHON_DIR, "bin/activate_this.py");
execfile(activate_this, dict(__file__=activate_this))
except:
print "BJ installation failed. Trying system-level python (/usr/bin/python)";
os.system("/usr/bin/python " + BOOTSTRAP_FILE + " " + BIGJOB_PYTHON_DIR);
- activate_this = BIGJOB_PYTHON_DIR+'bin/activate_this.py';
+ activate_this = os.path.join(BIGJOB_PYTHON_DIR, "bin/activate_this.py");
execfile(activate_this, dict(__file__=activate_this))
#try to import BJ once again
import bigjob.bigjob_agent

0 comments on commit 3f57147

Please sign in to comment.