Changeset 4270 for trunk/GSASIIctrlGUI.py
- Timestamp:
- Jan 31, 2020 4:07:00 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/GSASIIctrlGUI.py
r4220 r4270 3162 3162 def GetImportPath(G2frame): 3163 3163 '''Determines the default location to use for importing files. Tries sequentially 3164 G2frame.TutorialImportDir, config var Import_directory and G2frame.LastImportDir. 3164 G2frame.TutorialImportDir, config var Import_directory, G2frame.LastImportDir 3165 and G2frame.LastGPXdir 3165 3166 3166 :returns: a string containing the path to be used when reading files or None3167 :returns: a string containing the path to be used when reading files or '.' 3167 3168 if none of the above are specified. 3168 3169 ''' … … 3185 3186 elif GSASIIpath.GetConfigValue('debug'): 3186 3187 print('DBG_Warning: G2frame.LastImportDir not found = '+G2frame.LastImportDir) 3187 return None 3188 elif G2frame.LastGPXdir: 3189 return G2frame.LastGPXdir 3190 print('Import path not found - set to current directory') #now shouldn't happen 3191 return '.' 3188 3192 3189 3193 def GetExportPath(G2frame): … … 3198 3202 elif G2frame.LastGPXdir: 3199 3203 return G2frame.LastGPXdir 3200 else: 3201 return '.' 3204 print('Export path not found - set to current directory') #now shouldn't happen 3205 return '.' 3206 3202 3207 3203 3208 ################################################################################
Note: See TracChangeset
for help on using the changeset viewer.