forked from endorphant/ttbp
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 completemaster
parent
d83df0f370
commit
08238c7e9c
|
@ -212,6 +212,9 @@ press <enter> to begin, or <ctrl-c> to get out of here.
|
||||||
subprocess.call(["mkdir", CONFIG])
|
subprocess.call(["mkdir", CONFIG])
|
||||||
subprocess.call(["mkdir", DATA])
|
subprocess.call(["mkdir", DATA])
|
||||||
|
|
||||||
|
versionFile = os.path.join(PATH, "version")
|
||||||
|
open(versionFile, "w").write(__version__)
|
||||||
|
|
||||||
## create header file
|
## create header file
|
||||||
header = gen_header()
|
header = gen_header()
|
||||||
headerfile = open(os.path.join(CONFIG, "header.txt"), 'w')
|
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()
|
setup()
|
||||||
core.load(SETTINGS)
|
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 ""
|
return ""
|
||||||
|
|
||||||
def gen_header():
|
def gen_header():
|
||||||
|
|
Loading…
Reference in New Issue