]> rtime.felk.cvut.cz Git - linux-conf-perf.git/blobdiff - scripts/iteration.py
Chnage conf paths from absolute to relative
[linux-conf-perf.git] / scripts / iteration.py
index f885b37558b040e52f3a41199b678da25895f512..ef5a3f0aee1827474945de707167f5f76c87c23b 100644 (file)
@@ -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))