diff options
author | Karel Kočí <cynerd@email.cz> | 2015-04-27 21:31:03 +0200 |
---|---|---|
committer | Karel Kočí <cynerd@email.cz> | 2015-04-27 21:31:03 +0200 |
commit | e89081c8ae3ba5cc42a7f387b267f02ea5a4e8f1 (patch) | |
tree | 26e139e120f19a928fe8e2ea1a4b21802ce8ef29 /scripts/phase.py | |
parent | 99a8f39ae04baf1de67659a13d816eb3b89daa99 (diff) | |
download | linux-conf-perf-e89081c8ae3ba5cc42a7f387b267f02ea5a4e8f1.tar.gz linux-conf-perf-e89081c8ae3ba5cc42a7f387b267f02ea5a4e8f1.tar.bz2 linux-conf-perf-e89081c8ae3ba5cc42a7f387b267f02ea5a4e8f1.zip |
Chnage conf paths from absolute to relative
Diffstat (limited to 'scripts/phase.py')
-rw-r--r-- | scripts/phase.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/scripts/phase.py b/scripts/phase.py index fe7b4b1..390087f 100644 --- a/scripts/phase.py +++ b/scripts/phase.py @@ -2,6 +2,7 @@ import os import sys from conf import conf +from conf import sf phases = ("Not Initialized", #0 "Initializing", #1 @@ -18,7 +19,7 @@ phases = ("Not Initialized", #0 def get(): try: - with open(conf.phase_file) as f: + with open(sf(conf.phase_file)) as f: txtPhase = f.readline().rstrip() if not txtPhase in phases: raise PhaseMismatch() @@ -27,7 +28,7 @@ def get(): return 0 def set(phs): - with open(conf.phase_file, 'w') as f: + with open(sf(conf.phase_file), 'w') as f: f.write(phases[phs]) def pset(str): |