Changeset 92c714f in sasview for src


Ignore:
Timestamp:
Aug 9, 2018 3:40:59 AM (6 years ago)
Author:
wojciech
Branches:
ESS_GUI, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc
Children:
eb0d26c
Parents:
b259485
Message:

Path handling for docs from bundelled app

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/sas/qtgui/MainWindow/GuiManager.py

    r060413c r92c714f  
    194194        """ 
    195195        location = GuiUtils.HELP_DIRECTORY_LOCATION + url 
     196        #WP: Added to handle OSX bundle docs 
     197        if os.path.isdir(location) == False: 
     198            sas_path = os.path.abspath(os.path.dirname(sys.argv[0])) 
     199            location = sas_path+"/"+location 
    196200        try: 
    197201            webbrowser.open('file://' + os.path.realpath(location)) 
Note: See TracChangeset for help on using the changeset viewer.