attempt to create data file
This commit is contained in:
parent
1505c9ecb8
commit
0e0fe9204f
1 changed files with 4 additions and 0 deletions
4
nboard
4
nboard
|
@ -123,6 +123,10 @@ def main(stdscr):
|
|||
if __name__ == "__main__":
|
||||
try:
|
||||
dExists = os.path.isfile(dataPath)
|
||||
if not dExists:
|
||||
with open(dataPath, 'w') as f:
|
||||
f.write('{}')
|
||||
dExists = True
|
||||
except:
|
||||
dExists = False
|
||||
if not dExists or len(sys.argv) > 1 and (sys.argv[1] == '--help' or sys.argv[1] == 'help'):
|
||||
|
|
Loading…
Reference in a new issue