Changeset a8e6394 in sasview for src/sas/qtgui/Utilities


Ignore:
Timestamp:
Dec 4, 2018 9:22:00 AM (6 years ago)
Author:
wojciech
Branches:
ESS_GUI, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_opencl, ESS_GUI_sync_sascalc
Children:
2327399
Parents:
11a336f
Message:

Fixing documentation for BatchFitting?

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/sas/qtgui/Utilities/GridPanel.py

    rc4c4957 ra8e6394  
    183183        Open a local url in the default browser 
    184184        """ 
    185         location = GuiUtils.HELP_DIRECTORY_LOCATION 
    186185        url = "/user/qtgui/Perspectives/Fitting/fitting_help.html#batch-fit-mode" 
     186        location = GuiUtils.HELP_DIRECTORY_LOCATION + url 
     187        if os.path.isdir(location) == False: 
     188            sas_path = os.path.abspath(os.path.dirname(sys.argv[0])) 
     189            location = sas_path + "/" + location 
    187190        try: 
    188             webbrowser.open('file://' + os.path.realpath(location+url)) 
     191            webbrowser.open('file://' + os.path.realpath(location)) 
    189192        except webbrowser.Error as ex: 
    190193            logging.warning("Cannot display help. %s" % ex) 
Note: See TracChangeset for help on using the changeset viewer.