aboutsummaryrefslogtreecommitdiff
path: root/scripts/iteration.py
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/iteration.py')
-rw-r--r--scripts/iteration.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/scripts/iteration.py b/scripts/iteration.py
index f885b37..ef5a3f0 100644
--- a/scripts/iteration.py
+++ b/scripts/iteration.py
@@ -1,12 +1,13 @@
from conf import conf
+from conf import sf
def reset():
- with open(conf.iteration_file, 'w') as f:
+ with open(sf(conf.iteration_file), 'w') as f:
f.write('0')
def inc():
- with open(conf.iteration_file, 'r') as f:
+ with open(sf(conf.iteration_file), 'r') as f:
it = int(f.read())
it += 1
- with open(conf.iteration_file, 'w') as f:
+ with open(sf(conf.iteration_file), 'w') as f:
f.write(str(it))