From 4761eed66e66b7227087095f41fbfa7d235f64c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Tue, 28 Apr 2015 14:08:59 +0200 Subject: Include iteration and phase code to loop --- scripts/iteration.py | 13 ------------- 1 file changed, 13 deletions(-) delete mode 100644 scripts/iteration.py (limited to 'scripts/iteration.py') diff --git a/scripts/iteration.py b/scripts/iteration.py deleted file mode 100644 index ef5a3f0..0000000 --- a/scripts/iteration.py +++ /dev/null @@ -1,13 +0,0 @@ -from conf import conf -from conf import sf - -def reset(): - with open(sf(conf.iteration_file), 'w') as f: - f.write('0') - -def inc(): - with open(sf(conf.iteration_file), 'r') as f: - it = int(f.read()) - it += 1 - with open(sf(conf.iteration_file), 'w') as f: - f.write(str(it)) -- cgit v1.2.3