Changeset 92583049 in sasview
- Timestamp:
- Jan 6, 2017 6:20:35 AM (8 years ago)
- Children:
- f370ea07
- Parents:
- e2c0939
- Location:
- src/sas/sasgui
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/sasgui/guiframe/customdir.py
r212bfc2 r92583049 34 34 if not os.path.isfile(config_file): 35 35 shutil.copyfile(os.path.join(path, "custom_config.py"), config_file) 36 37 #Adding SAS_OPENCL if it doesn't exist in the config file 38 # - to support backcompability 39 if not "SAS_OPENCL" in open(config_file).read(): 40 open(config_file,"a+").write("SAS_OPENCL = \"None\"\n") 36 41 except: 37 42 # Check for data path next to exe/zip file. -
src/sas/sasgui/perspectives/fitting/gpu_options.py
re2c0939 r92583049 79 79 #Check if SAS_OPENCL is already set as enviromental variable 80 80 self.sas_opencl = os.environ.get("SAS_OPENCL","") 81 81 82 82 for clopt in clinfo: 83 83 button = wx.CheckBox(self.panel1, -1, label=clopt[1], name=clopt[1]) … … 106 106 accept_btn = wx.Button(self, wx.ID_OK) 107 107 accept_btn.SetToolTipString("Accept new OpenCL settings. This will" 108 " over write SAS_OPENCL variable if set")108 " override SAS_OPENCL variable if set") 109 109 110 110 help_id = wx.NewId()
Note: See TracChangeset
for help on using the changeset viewer.