Changeset 0505fce in sasview
- Timestamp:
- Apr 10, 2017 10:49:33 AM (8 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.2.2, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
- Children:
- e6a3c6c
- Parents:
- 2a8b4756
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sasview/logger_config.py
r2a8b4756 r0505fce 42 42 ''' 43 43 ''' 44 logging.config.fileConfig(self.config_file) 44 if self.config_file is not None: 45 logging.config.fileConfig(self.config_file) 45 46 46 47 def _update_all_logs_to_debug(self, logger): … … 66 67 try: 67 68 places_to_look_for_conf_file.append( 68 pkg_resources.resource_filename( __name__, filename))69 pkg_resources.resource_filename("tempfile", filename)) 69 70 except NotImplementedError: 70 71 pass … … 74 75 self.config_file = filepath 75 76 return 76 raise Exception("%s not found...", filename)77 77 print("%s not found...", filename) 78 self.config_file = None
Note: See TracChangeset
for help on using the changeset viewer.