File tree Expand file tree Collapse file tree 1 file changed +10
-3
lines changed
Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -118,8 +118,11 @@ def lookupAppdataFolder():
118118 if "HOME" in environ :
119119 dataFolder = path .join (os .environ ["HOME" ], "Library/Application Support/" , APPNAME ) + '/'
120120 else :
121- logger .critical ('Could not find home folder, please report this message and your '
122- 'OS X version to the BitMessage Github.' )
121+ stringToLog = 'Could not find home folder, please report this message and your OS X version to the BitMessage Github.'
122+ if 'logger' in globals ():
123+ logger .critical (stringToLog )
124+ else :
125+ print stringToLog
123126 sys .exit ()
124127
125128 elif 'win32' in sys .platform or 'win64' in sys .platform :
@@ -133,7 +136,11 @@ def lookupAppdataFolder():
133136
134137 # Migrate existing data to the proper location if this is an existing install
135138 try :
136- logger .info ("Moving data folder to %s" % (dataFolder ))
139+ stringToLog = "Moving data folder to %s" % (dataFolder )
140+ if 'logger' in globals ():
141+ logger .info (stringToLog )
142+ else :
143+ print stringToLog
137144 move (path .join (environ ["HOME" ], ".%s" % APPNAME ), dataFolder )
138145 except IOError :
139146 pass
You can’t perform that action at this time.
0 commit comments