"""Helper Start performs all the startup operations."""
importConfigParser
frombmconfigparserimportBMConfigParser
importdefaults
importsys
importos
importlocale
importrandom
importstring
importplatform
fromdistutils.versionimportStrictVersion
@ -14,7 +13,10 @@ import paths
importstate
importhelper_random
storeConfigFilesInSameDirectoryAsProgramByDefault=False# The user may de-select Portable Mode in the settings if they want the config files to stay in the application data folder.
storeConfigFilesInSameDirectoryAsProgramByDefault=False# The user may
# de-select Portable Mode in the settings if they want the config files to
# stay in the application data folder.
def_loadTrustedPeer():
try:
@ -27,15 +29,16 @@ def _loadTrustedPeer():
host,port=trustedPeer.split(':')
state.trustedPeer=state.Peer(host,int(port))
defloadConfig():
ifstate.appdata:
BMConfigParser().read(state.appdata+'keys.dat')
#state.appdata must have been specified as a startup option.
#state.appdata must have been specified as a startup option.