Changeset 0505fce in sasview


Ignore:
Timestamp:
Apr 10, 2017 10:49:33 AM (7 years ago)
Author:
Ricardo Ferraz Leal <ricleal@…>
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
Message:

Trying fixing package resources for OSx

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sasview/logger_config.py

    r2a8b4756 r0505fce  
    4242        ''' 
    4343        ''' 
    44         logging.config.fileConfig(self.config_file) 
     44        if self.config_file is not None: 
     45            logging.config.fileConfig(self.config_file) 
    4546 
    4647    def _update_all_logs_to_debug(self, logger): 
     
    6667        try: 
    6768            places_to_look_for_conf_file.append( 
    68                 pkg_resources.resource_filename(__name__, filename)) 
     69                pkg_resources.resource_filename("tempfile", filename)) 
    6970        except NotImplementedError: 
    7071            pass 
     
    7475                self.config_file = filepath 
    7576                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.