diff options
author | Santo Cariotti <sancn@live.com> | 2017-08-22 11:23:28 +0200 |
---|---|---|
committer | Santo Cariotti <sancn@live.com> | 2017-08-22 11:23:28 +0200 |
commit | 182971e61b582d784025643a22f7b8de40fa2c31 (patch) | |
tree | 2a2304f2967fc74e9718eb108c56151895adb863 /lib/app.py | |
parent | 70b6d39cfd22c35700eb7519c8bc41d6d792e1d6 (diff) |
fixed 'get todo'
Diffstat (limited to 'lib/app.py')
-rw-r--r-- | lib/app.py | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -2,6 +2,7 @@ from classes import r, clear, YELLOW, BLACK, GREY from commands import Commands from listcommands import ListCommands import os.path +from config import config class Stout(Commands): @@ -22,7 +23,7 @@ class Stout(Commands): if users exists, return username, else return an empty string """ try: - with open('/tmp/stout', 'rb') as fin: + with open(config['path'], 'rb') as fin: user = fin.readline() if user == '': @@ -69,8 +70,8 @@ if __name__ == '__main__': app = Stout() cmd = '' - if not os.path.isfile('/tmp/stout'): - open('/tmp/stout', 'wb').close() + if not os.path.isfile(config['path']): + open(config['path'], 'wb').close() while cmd != 'quit': try: |