Changeset 41eee5f in sasview


Ignore:
Timestamp:
Jun 5, 2015 7:40:56 AM (10 years ago)
Author:
Doucet, Mathieu <doucetm@…>
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:
db41746
Parents:
90662e6
Message:

tweak

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/sas/guiframe/documentation_window.py

    r90662e6 r41eee5f  
    2626            docs_path = os.path.join(get_app_dir(), "doc") 
    2727 
    28         file_path = "file:///" + docs_path + "/" + path 
     28        file_path = os.path.join(docs_path, path) 
    2929 
    3030        if not os.path.exists(file_path): 
     
    3434            # Complete HTML/CSS support! 
    3535            self.view = html.WebView.New(self) 
    36             self.view.LoadURL(file_path) 
     36            self.view.LoadURL("file://" + file_path) 
    3737            self.Show() 
    3838        else:  
     
    4242            #Red hat used at SNS for which Wx 3.0 is not available.  This 
    4343            #does not deal with issue of math in docs of course.  
    44             webbrowser.open_new_tab(file_path) 
     44            webbrowser.open_new_tab("file://" + file_path) 
    4545 
    4646def main(): 
Note: See TracChangeset for help on using the changeset viewer.