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__":
|
if __name__ == "__main__":
|
||||||
try:
|
try:
|
||||||
dExists = os.path.isfile(dataPath)
|
dExists = os.path.isfile(dataPath)
|
||||||
|
if not dExists:
|
||||||
|
with open(dataPath, 'w') as f:
|
||||||
|
f.write('{}')
|
||||||
|
dExists = True
|
||||||
except:
|
except:
|
||||||
dExists = False
|
dExists = False
|
||||||
if not dExists or len(sys.argv) > 1 and (sys.argv[1] == '--help' or sys.argv[1] == 'help'):
|
if not dExists or len(sys.argv) > 1 and (sys.argv[1] == '--help' or sys.argv[1] == 'help'):
|
||||||
|
|
Loading…
Reference in a new issue