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):
11451145 localdir = os .path .expanduser (os .path .normpath ('~/.GSASII' ))
11461146 if not os .path .exists (localdir ):
11471147 try :
1148- os .mkdir (g2local )
1148+ os .mkdir (localdir )
11491149 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 } ' )
11521152 return True
11531153 cfgfile = os .path .join (localdir ,'config.ini' )
11541154 cfgP = configparser .ConfigParser ()
@@ -1187,7 +1187,7 @@ def XferConfigIni():
11871187 print ("Error reading config.py file\n " ,err )
11881188 return
11891189 print (f"Contents of { config .__file__ } to be written..." )
1190- WriteIniConfi (configDict )
1190+ WriteConfig (configDict )
11911191
11921192 import configparser
11931193 global configDict
You can’t perform that action at this time.
0 commit comments