File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -1145,10 +1145,10 @@ def WriteConfig(configDict):
1145
1145
localdir = os .path .expanduser (os .path .normpath ('~/.GSASII' ))
1146
1146
if not os .path .exists (localdir ):
1147
1147
try :
1148
- os .mkdir (g2local )
1148
+ os .mkdir (localdir )
1149
1149
print (f'Created directory { localdir } ' )
1150
- except :
1151
- print (f'Error trying to create directory { localdir } ' )
1150
+ except Exception as msg :
1151
+ print (f'Error trying to create directory { localdir } \n { msg } ' )
1152
1152
return True
1153
1153
cfgfile = os .path .join (localdir ,'config.ini' )
1154
1154
cfgP = configparser .ConfigParser ()
@@ -1187,7 +1187,7 @@ def XferConfigIni():
1187
1187
print ("Error reading config.py file\n " ,err )
1188
1188
return
1189
1189
print (f"Contents of { config .__file__ } to be written..." )
1190
- WriteIniConfi (configDict )
1190
+ WriteConfig (configDict )
1191
1191
1192
1192
import configparser
1193
1193
global configDict
You can’t perform that action at this time.
0 commit comments