attempt to create data file

This commit is contained in:
xfnw 2021-12-25 16:47:39 -05:00
parent 1505c9ecb8
commit 0e0fe9204f

4
nboard
View file

@ -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'):