Changeset 0a5d1a8 in sasview


Ignore:
Timestamp:
May 1, 2018 5:10:03 AM (3 years ago)
Author:
wojciech
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
Message:

Checked order for check, so error is raised from wx

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/sas/sasview/sasview.py

    r666454e r0a5d1a8  
    196196    backend_bases.FigureCanvasBase.filetypes.pop('pgf', None) 
    197197 
    198 def setup_sasmodels(): 
    199     """ 
    200     Prepare sasmodels for running within sasview. 
    201     """ 
    202     #Checking for the sasmodel compiler 
     198def check_sasmodels_compiler(): 
     199    """ 
     200    Checking c compiler for sasmodels 
     201    """ 
    203202    if sys.platform == "darwin" and not os.path.exists("/Library/Developer/CommandLineTools/usr/bin/cc"): 
    204203        raise RuntimeError("No compiler. Open Terminal.app and type 'cc' at the command prompt for more instructions.") 
     204 
     205def setup_sasmodels(): 
     206    """ 
     207    Prepare sasmodels for running within sasview. 
     208    """ 
    205209    # Set SAS_MODELPATH so sasmodels can find our custom models 
    206210    plugin_dir = os.path.join(sas.get_user_dir(), PLUGIN_MODEL_DIR) 
     
    221225    setup_sasmodels() 
    222226    setup_wx() 
     227    check_sasmodels_compiler() 
    223228    SasView() 
    224229 
Note: See TracChangeset for help on using the changeset viewer.