Changeset 2e27cdb6 in sasview for run.py


Ignore:
Timestamp:
May 16, 2018 5:03:21 AM (6 years ago)
Author:
Piotr Rozyczko <rozyczko@…>
Branches:
ESS_GUI, 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:
976978b
Parents:
b12404e
git-author:
Piotr Rozyczko <rozyczko@…> (05/16/18 03:50:24)
git-committer:
Piotr Rozyczko <rozyczko@…> (05/16/18 05:03:21)
Message:

Fixed runtime UI conversion

File:
1 edited

Legend:

Unmodified
Added
Removed
  • run.py

    r3c6ecd9 r2e27cdb6  
    141141    sys.path.append(build_path) 
    142142 
    143     # Run the UI conversion tool 
    144     import sas.qtgui.convertUI 
     143    # Run the UI conversion tool if executed from script 
     144    if os.path.splitext(sys.argv[0])[1].lower() == ".py": 
     145        import sas.qtgui.convertUI 
    145146 
    146147 
Note: See TracChangeset for help on using the changeset viewer.