aboutsummaryrefslogtreecommitdiff
path: root/scripts/phase.py
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/phase.py')
-rw-r--r--scripts/phase.py5
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):