Changeset 2ecb0a5 in sasview for run.py


Ignore:
Timestamp:
Sep 20, 2017 5:23:28 PM (7 years ago)
Author:
Paul Kienzle <pkienzle@…>
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:
6e50a8d
Parents:
e75de07
Message:

run without gui if run.py includes a script file; include tinycc path on windows

File:
1 edited

Legend:

Unmodified
Added
Removed
  • run.py

    r7c64911 r2ecb0a5  
    103103        addpath(joinpath(root, '..', 'bumps')) 
    104104 
     105    try: 
     106        import tinycc 
     107    except: 
     108        addpath(joinpath(root, '../tinycc/build/lib')) 
     109 
    105110    # select wx version 
    106111    #addpath(os.path.join(root, '..','wxPython-src-3.0.0.0','wxPython')) 
     
    174179    get_logger().debug("Starting SASVIEW in debug mode.") 
    175180    prepare() 
    176     from sas.sasview.sasview import run_gui 
    177     run_gui() 
     181    from sas.sasview.sasview import run_cli, run_gui 
     182    if len(sys.argv) == 1: 
     183        run_gui() 
     184    else: 
     185        run_cli() 
    178186    get_logger().debug("Ending SASVIEW in debug mode.") 
Note: See TracChangeset for help on using the changeset viewer.