Update Config File Generator
This commit is contained in:
@@ -4,4 +4,7 @@ version = 1.21
|
||||
[ACCOUNT]
|
||||
key = NK
|
||||
id = NA
|
||||
usernname = NK
|
||||
friendcode = NK
|
||||
awards = []
|
||||
|
||||
|
||||
20
CLI/Init.py
20
CLI/Init.py
@@ -20,10 +20,11 @@ parser.add_argument('-backend', help="Runs the app in backend mode (no UI)", act
|
||||
|
||||
#declare default vars
|
||||
class Config():
|
||||
|
||||
|
||||
AccountKey = "NK"
|
||||
AccountID = "NA"
|
||||
AccountUsername = "NoAccount"
|
||||
AccountFriendCode = "NK"
|
||||
AccountAwards = []
|
||||
version = APP_VERSION
|
||||
|
||||
class ServerObj():
|
||||
@@ -91,11 +92,26 @@ def WarnMissingConfig(ConfigError):
|
||||
|
||||
|
||||
def makeConfig():
|
||||
#
|
||||
# AccountKey = "NK"
|
||||
# AccountID = "NA"
|
||||
# AccountUsername = "NoAccount"
|
||||
# AccountFriendCode = "NK"
|
||||
# AccountAwards = []
|
||||
#
|
||||
|
||||
|
||||
|
||||
|
||||
config['DEFAULT'] = {'Version': Config.version}
|
||||
config['ACCOUNT'] = {}
|
||||
config['ACCOUNT']['KEY'] = "NK"
|
||||
config['ACCOUNT']["ID"] = "NA"
|
||||
config['ACCOUNT']['Usernname'] = "NK"
|
||||
config['ACCOUNT']['FriendCode'] = "NK"
|
||||
config['ACCOUNT']['Awards'] = "[]"
|
||||
|
||||
|
||||
with open('Config.ini', 'w') as configfile:
|
||||
config.write(configfile)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user