Changeset c3437260 in sasview for run.py


Ignore:
Timestamp:
Nov 30, 2014 1:06:12 PM (5 years ago)
Author:
Peter Parker
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, costrafo411, magnetic_scatt, release-4.1.1, release-4.1.2, release-4.2.2, release_4.0.1, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
Children:
70a9d1c
Parents:
9729a6d
Message:

Refs #221 - Add extra help menu item if wxPython 2.9 or higher is present. This button just opens up a viewer on the index.html page of the Sphinx documentation. Note the slight implementation detail of using os.environ to track whether or not run.py has been used to run SasView? 'in-place'. In this case the documentation is in a different place relative to the main sansview.py entry point of the program.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • run.py

    rf8940db rc3437260  
    6767    #import numpy; numpy.seterr(all='raise') 
    6868 
     69    # Notify the help menu that the Sphinx documentation is in a different  
     70    # place than it otherwise would be. 
     71 
     72     
     73 
    6974    # find the directories for the source and build 
    7075    from distutils.util import get_platform 
     
    7277    platform = '%s-%s'%(get_platform(),sys.version[:3]) 
    7378    build_path = joinpath(root, 'build','lib.'+platform) 
     79 
     80    os.environ['SASVIEW_DOC_PATH'] = joinpath(build_path, "doc") 
    7481 
    7582    # Make sure that we have a private version of mplconfig 
Note: See TracChangeset for help on using the changeset viewer.