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
master
endorphant 2016-09-08 19:11:34 -04:00
parent d83df0f370
commit 08238c7e9c
1 changed files with 4 additions and 1 deletions

View File

@ -212,6 +212,9 @@ press <enter> to begin, or <ctrl-c> 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 <enter> to begin, or <ctrl-c> to get out of here.
setup()
core.load(SETTINGS)
raw_input("\nyou're all good to go, "+chatter.say("friend")+"! hit <enter> to continue.\n\n")
#raw_input("\nyou're all good to go, "+chatter.say("friend")+"! hit <enter> to continue.\n\n")
return ""
def gen_header():