Changeset 31c5b58 in sasview for run.py


Ignore:
Timestamp:
Nov 25, 2016 8:56:41 AM (8 years ago)
Author:
Piotr Rozyczko <rozyczko@…>
Branches:
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
Children:
3968752
Parents:
14d9c7b
Message:

Refactored to allow running with run.py.
Minor fixes to plotting.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • run.py

    • Property mode changed from 100755 to 100644
    r832fea2 r31c5b58  
    5757    # build_path comes from context 
    5858    path = joinpath(build_path, *modname.split('.'))+ext 
    59     #print "importing", modname, "from", path 
    6059    return imp.load_dynamic(modname, path) 
    6160 
     
    7776    os.environ['SASVIEW_DOC_PATH'] = joinpath(build_path, "doc") 
    7877 
    79     # Make sure that we have a private version of mplconfig 
    80     #mplconfig = joinpath(abspath(dirname(__file__)), '.mplconfig') 
    81     #os.environ['MPLCONFIGDIR'] = mplconfig 
    82     #if not os.path.exists(mplconfig): os.mkdir(mplconfig) 
    83     #import matplotlib 
    84     #matplotlib.use('Agg') 
    85     #print matplotlib.__file__ 
    86     #import pylab; pylab.hold(False) 
    8778    # add periodictable to the path 
    8879    try: import periodictable 
     
    9182    try: import bumps 
    9283    except: addpath(joinpath(root, '..','bumps')) 
    93  
    94     # select wx version 
    95     #addpath(os.path.join(root, '..','wxPython-src-3.0.0.0','wxPython')) 
    9684 
    9785    # Build project if the build directory does not already exist. 
     
    112100    sas.sasview = import_package('sas.sasview', joinpath(root,'sasview')) 
    113101 
    114     # The sas.models package Compiled Model files should be pulled in from the build directory even though 
    115     # the source is stored in src/sas/models. 
    116  
    117102    # Compiled modules need to be pulled from the build directory. 
    118103    # Some packages are not where they are needed, so load them explicitly. 
     
    129114    sys.path.append(build_path) 
    130115 
    131     #print "\n".join(sys.path) 
    132  
    133116if __name__ == "__main__": 
    134117    prepare() 
    135     from sas.sasview.sasview import run 
     118    from sas.qtgui.MainWindow import run 
    136119    run() 
Note: See TracChangeset for help on using the changeset viewer.