Changeset e61f668 in sasview
- Timestamp:
- Aug 18, 2017 10:49:56 AM (7 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, magnetic_scatt, release-4.2.2, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
- Children:
- 7c64911
- Parents:
- 12f7f24
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
run.py
r7df0ccd re61f668 22 22 from os.path import join as joinpath 23 23 from os.path import abspath, dirname 24 25 24 26 25 def addpath(path): … … 157 156 sas.sasview.__build__ = str(git_revision).strip() 158 157 except subprocess.CalledProcessError as cpe: 159 logger.warning("Error while determining build number\n Using command:\n %s \n Output:\n %s"% (cpe.cmd,cpe.output))158 get_logger().warning("Error while determining build number\n Using command:\n %s \n Output:\n %s"% (cpe.cmd,cpe.output)) 160 159 160 _logger = None 161 def get_logger(): 162 global _logger 163 if _logger is not None: 164 from sas.logger_config import SetupLogger 165 _logger = SetupLogger(__name__).config_development() 166 return _logger 161 167 162 168 if __name__ == "__main__": … … 165 171 root = abspath(dirname(__file__)) 166 172 addpath(joinpath(root, 'src')) 167 from sas.logger_config import SetupLogger168 logger = SetupLogger(__name__).config_development()169 173 170 logger.debug("Starting SASVIEW in debug mode.")174 get_logger().debug("Starting SASVIEW in debug mode.") 171 175 prepare() 172 176 from sas.sasview.sasview import run_gui 173 177 run_gui() 174 logger.debug("Ending SASVIEW in debug mode.")178 get_logger().debug("Ending SASVIEW in debug mode.")
Note: See TracChangeset
for help on using the changeset viewer.