From e89081c8ae3ba5cc42a7f387b267f02ea5a4e8f1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Mon, 27 Apr 2015 21:31:03 +0200 Subject: Chnage conf paths from absolute to relative --- scripts/phase.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'scripts/phase.py') 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): -- cgit v1.2.3