diff options
author | Karel Kočí <cynerd@email.cz> | 2015-04-27 21:31:03 +0200 |
---|---|---|
committer | Karel Kočí <cynerd@email.cz> | 2015-04-27 21:31:03 +0200 |
commit | e89081c8ae3ba5cc42a7f387b267f02ea5a4e8f1 (patch) | |
tree | 26e139e120f19a928fe8e2ea1a4b21802ce8ef29 /scripts/iteration.py | |
parent | 99a8f39ae04baf1de67659a13d816eb3b89daa99 (diff) | |
download | linux-conf-perf-e89081c8ae3ba5cc42a7f387b267f02ea5a4e8f1.tar.gz linux-conf-perf-e89081c8ae3ba5cc42a7f387b267f02ea5a4e8f1.tar.bz2 linux-conf-perf-e89081c8ae3ba5cc42a7f387b267f02ea5a4e8f1.zip |
Chnage conf paths from absolute to relative
Diffstat (limited to 'scripts/iteration.py')
-rw-r--r-- | scripts/iteration.py | 7 |
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)) |