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/iteration.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'scripts/iteration.py') 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)) -- cgit v1.2.3