From 590eb2b49512c65bcd620fa0af0c42cc364edade Mon Sep 17 00:00:00 2001 From: Will Holland Date: Wed, 16 Sep 2015 18:24:18 +0100 Subject: Remove hardcoded user home dir --- builder_logic.py | 4 ++-- deploy_logic.py | 4 ++-- 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 -- cgit v1.2.1