V0.6 #852
|
@ -35,7 +35,7 @@ def loadConfig():
|
|||
needToCreateKeysFile = True
|
||||
|
||||
else:
|
||||
shared.config.read(shared.lookupExeFolder() + 'keys.dat'))
|
||||
shared.config.read(shared.lookupExeFolder() + 'keys.dat')
|
||||
try:
|
||||
shared.config.get('bitmessagesettings', 'settingsversion')
|
||||
print 'Loading config files from same directory as program.'
|
||||
|
|
|
@ -200,9 +200,9 @@ def assembleErrorMessage(fatal=0, banTime=0, inventoryVector='', errorText=''):
|
|||
|
||||
def lookupExeFolder():
|
||||
if frozen:
|
||||
exeFolder = os.path.join(os.path.dirname(sys.executable), '/')
|
||||
exeFolder = path.dirname(sys.executable) + path.sep
|
||||
elif __file__:
|
||||
exeFolder = os.path.join(os.path.dirname(__file__), '/')
|
||||
exeFolder = path.dirname(__file__) + path.sep
|
||||
else:
|
||||
exeFolder = ''
|
||||
return exeFolder
|
||||
|
|
Reference in New Issue
Block a user