diff options
author | Will Holland <william.holland@codethink.co.uk> | 2015-09-16 18:24:18 +0100 |
---|---|---|
committer | Will Holland <william.holland@codethink.co.uk> | 2015-09-16 18:24:18 +0100 |
commit | 590eb2b49512c65bcd620fa0af0c42cc364edade (patch) | |
tree | 674285a5de242b6d47e751f2dbae6e0fe71d6d9c | |
parent | bb3d41b350b30e84423f2d077fca79c52205535f (diff) | |
download | buildslave-scripts-590eb2b49512c65bcd620fa0af0c42cc364edade.tar.gz |
Remove hardcoded user home dir
-rw-r--r-- | builder_logic.py | 4 | ||||
-rw-r--r-- | deploy_logic.py | 4 | ||||
-rw-r--r-- | firehose_call.py | 2 |
3 files changed, 5 insertions, 5 deletions
diff --git a/builder_logic.py b/builder_logic.py index e544897..11413fb 100644 --- a/builder_logic.py +++ b/builder_logic.py @@ -1,4 +1,4 @@ -import subprocess +import subprocess, os ORCHE_URL = 'http://127.0.0.1:8080/' SYSTEM='genivi-demo-platform-x86_64-generic.morph' @@ -18,7 +18,7 @@ whitelist = [ 'strata/bsp-x86_64-generic.morph', ] -LOGFILE = '/home/williamholland/orchestration/trigger_log' +LOGFILE = os.path.expanduser("~/orchestration/trigger_log") log_file = open(LOGFILE,'a') diff --git a/deploy_logic.py b/deploy_logic.py index c5b3150..a0cbd2e 100644 --- a/deploy_logic.py +++ b/deploy_logic.py @@ -1,4 +1,4 @@ -import subprocess +import subprocess, os ORCHE_URL = 'http://127.0.0.1:8080/' BUILD_SCRIPT = 'build_a_system.sh' @@ -15,7 +15,7 @@ whitelist = [ 'strata/bsp-x86_64-generic.morph', ] -LOGFILE = '/home/williamholland/orchestration/trigger_log' +LOGFILE = os.path.expanduser("~/orchestration/trigger_log") log_file = open(LOGFILE,'a') diff --git a/firehose_call.py b/firehose_call.py index 9405fe5..bc343a1 100644 --- a/firehose_call.py +++ b/firehose_call.py @@ -4,7 +4,7 @@ #./firehose.sh examples/*.yaml --log=/dev/stdout --log-level=debug FIREHOSE_DIR = 'firehose' -LOGFILE = '/home/williamholland/orchestration/trigger_log' +LOGFILE = os.path.expanduser("~/orchestration/trigger_log") from firehose_mappings import mapping |