- Timestamp:
- May 1, 2018 5:10:03 AM (7 years ago)
- Branches:
- master, magnetic_scatt, release-4.2.2, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, unittest-saveload
- Children:
- f4161f7a
- Parents:
- 1b068256
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/sasview/sasview.py
r666454e r0a5d1a8 196 196 backend_bases.FigureCanvasBase.filetypes.pop('pgf', None) 197 197 198 def setup_sasmodels(): 199 """ 200 Prepare sasmodels for running within sasview. 201 """ 202 #Checking for the sasmodel compiler 198 def check_sasmodels_compiler(): 199 """ 200 Checking c compiler for sasmodels 201 """ 203 202 if sys.platform == "darwin" and not os.path.exists("/Library/Developer/CommandLineTools/usr/bin/cc"): 204 203 raise RuntimeError("No compiler. Open Terminal.app and type 'cc' at the command prompt for more instructions.") 204 205 def setup_sasmodels(): 206 """ 207 Prepare sasmodels for running within sasview. 208 """ 205 209 # Set SAS_MODELPATH so sasmodels can find our custom models 206 210 plugin_dir = os.path.join(sas.get_user_dir(), PLUGIN_MODEL_DIR) … … 221 225 setup_sasmodels() 222 226 setup_wx() 227 check_sasmodels_compiler() 223 228 SasView() 224 229
Note: See TracChangeset
for help on using the changeset viewer.