From 0e0fe9204fb18f8a4bad5343481147fed26446d1 Mon Sep 17 00:00:00 2001 From: xfnw Date: Sat, 25 Dec 2021 16:47:39 -0500 Subject: [PATCH] attempt to create data file --- nboard | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/nboard b/nboard index e632a0d..c6ac7b6 100755 --- a/nboard +++ b/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'):