From 08238c7e9c00e775c62a1a0b48c96d778c000335 Mon Sep 17 00:00:00 2001 From: endorphant Date: Thu, 8 Sep 2016 19:11:34 -0400 Subject: [PATCH] cleaning up new user initialization. now it adds a version file to prevent having to check for updates on the next start, and also removes double-confirming that setup is complete --- bin/ttbp.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bin/ttbp.py b/bin/ttbp.py index f44c71c..9ba6c9b 100644 --- a/bin/ttbp.py +++ b/bin/ttbp.py @@ -212,6 +212,9 @@ press to begin, or to get out of here. subprocess.call(["mkdir", CONFIG]) subprocess.call(["mkdir", DATA]) + versionFile = os.path.join(PATH, "version") + open(versionFile, "w").write(__version__) + ## create header file header = gen_header() headerfile = open(os.path.join(CONFIG, "header.txt"), 'w') @@ -227,7 +230,7 @@ press to begin, or to get out of here. setup() core.load(SETTINGS) - raw_input("\nyou're all good to go, "+chatter.say("friend")+"! hit to continue.\n\n") + #raw_input("\nyou're all good to go, "+chatter.say("friend")+"! hit to continue.\n\n") return "" def gen_header():