Changeset b963b20 in sasview for src/sas/sasgui/guiframe/gui_manager.py
- Timestamp:
- Sep 24, 2017 11:29:13 PM (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:
- b277220, fca1f50
- Parents:
- d3b0c77
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/sasgui/guiframe/gui_manager.py
r914ba0a rb963b20 28 28 from matplotlib import _pylab_helpers 29 29 30 from sas .sasgui import get_local_config, get_app_dir, get_user_dir30 from sas import get_local_config, get_custom_config, get_app_dir, get_user_dir 31 31 from sas.sasgui.guiframe.events import EVT_CATEGORY 32 32 from sas.sasgui.guiframe.events import EVT_STATUS … … 47 47 from sas.sascalc.dataloader.loader import Loader 48 48 from sas.sasgui.guiframe.proxy import Connection 49 from sas.sasgui.guiframe.customdir import setup_custom_config50 49 51 50 logger = logging.getLogger(__name__) … … 53 52 54 53 config = get_local_config() 55 custom_config = setup_custom_config()54 custom_config = get_custom_config() 56 55 57 56 # read some constants from config … … 63 62 SPLASH_SCREEN_HEIGHT = config.SPLASH_SCREEN_HEIGHT 64 63 SS_MAX_DISPLAY_TIME = config.SS_MAX_DISPLAY_TIME 65 SAS_OPENCL = config.SAS_OPENCL66 64 if not WELCOME_PANEL_ON: 67 65 WELCOME_PANEL_SHOW = False … … 138 136 PARENT_FRAME = wx.Frame 139 137 CHILD_FRAME = wx.Frame 140 141 #Initiliaze enviromental variable with custom setting but only if variable not set142 if SAS_OPENCL and not "SAS_OPENCL" in os.environ:143 os.environ["SAS_OPENCL"] = SAS_OPENCL144 138 145 139 class ViewerFrame(PARENT_FRAME):
Note: See TracChangeset
for help on using the changeset viewer.