Changes in src/sas/sasgui/guiframe/gui_manager.py [2f22db9:49165488] in sasview
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/sasgui/guiframe/gui_manager.py
r2f22db9 r49165488 77 77 # clean all these module variables and put them into a config class 78 78 # that can be passed by sasview.py. 79 logger. debug(sys.executable)80 logger. debug(str(sys.argv))79 logger.info(sys.executable) 80 logger.info(str(sys.argv)) 81 81 from sas import sasview as sasview 82 82 app_path = os.path.dirname(sasview.__file__) 83 logger. debug("Using application path: %s", app_path)83 logger.info("Using application path: %s", app_path) 84 84 return app_path 85 85 … … 109 109 if fObj is not None: 110 110 fObj.close() 111 logger. debug("GuiManager loaded %s/%s" % (path, file))111 logger.info("GuiManager loaded %s/%s" % (path, file)) 112 112 return config_module 113 113 … … 126 126 # Didn't find local config, load the default 127 127 import sas.sasgui.guiframe.config as config 128 logger. debug("using default local_config")128 logger.info("using default local_config") 129 129 else: 130 logger. debug("found local_config in %s" % os.getcwd())130 logger.info("found local_config in %s" % os.getcwd()) 131 131 else: 132 logger. debug("found local_config in %s" % PATH_APP)132 logger.info("found local_config in %s" % PATH_APP) 133 133 134 134 from sas.sasgui.guiframe.customdir import SetupCustom … … 139 139 if custom_config is None: 140 140 msgConfig = "Custom_config file was not imported" 141 logger. debug(msgConfig)141 logger.info(msgConfig) 142 142 else: 143 logger. debug("using custom_config in %s" % os.getcwd())143 logger.info("using custom_config in %s" % os.getcwd()) 144 144 else: 145 logger. debug("using custom_config from %s" % c_conf_dir)145 logger.info("using custom_config from %s" % c_conf_dir) 146 146 147 147 # read some constants from config … … 2129 2129 if "SAS_OPENCL" in line: 2130 2130 if sas_opencl: 2131 new_config_lines.append("SAS_OPENCL = \"" + sas_opencl 2132 + "\"\n") 2131 new_config_lines.append("SAS_OPENCL = \""+sas_opencl+"\"") 2133 2132 else: 2134 new_config_lines.append("SAS_OPENCL = \"None\"\n")2133 new_config_lines.append("SAS_OPENCL = None") 2135 2134 else: 2136 2135 new_config_lines.append(line) … … 2157 2156 if response is not None: 2158 2157 try: 2158 # 2159 2159 content = response.read().strip() 2160 logger.info("Connected to www.sasview.org. Latest version: %s", content) 2160 logger.info("Connected to www.sasview.org. Latest version: %s" 2161 % (content)) 2161 2162 version_info = json.loads(content) 2162 2163 except:
Note: See TracChangeset
for help on using the changeset viewer.