Changeset 19e614a in sasview for sansguiframe
- Timestamp:
- May 2, 2012 11:03:55 AM (13 years ago)
- Branches:
- master, ESS_GUI, ESS_GUI_Docs, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_iss959, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc, costrafo411, magnetic_scatt, release-4.1.1, release-4.1.2, release-4.2.2, release_4.0.1, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
- Children:
- 3aab96b
- Parents:
- 6246e00
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sansguiframe/src/sans/guiframe/gui_manager.py
r3184d964 r19e614a 3396 3396 self.frame.set_input_file(input_file=input_file) 3397 3397 3398 3398 def clean_plugin_models(self, path): 3399 """ 3400 Delete plugin models in app folder 3401 3402 :param path: path of the plugin_models folder in app 3403 """ 3404 # do it only the first time app loaded 3405 # delete unused model folder 3406 model_folder = os.path.join(PATH_APP, path) 3407 if os.path.exists(model_folder) and os.path.isdir(model_folder): 3408 if len(os.listdir(model_folder)) > 0: 3409 try: 3410 for file in os.listdir(model_folder): 3411 file_path = os.path.join(model_folder, file) 3412 if os.path.isfile(file_path): 3413 os.remove(file_path) 3414 except: 3415 pass 3416 3399 3417 def set_manager(self, manager): 3400 3418 """
Note: See TracChangeset
for help on using the changeset viewer.