Ignore:
File:
1 edited

Legend:

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

    r69032d4 r9afc543  
    99else: 
    1010    import wx.html as html 
     11from gui_manager import get_app_dir 
    1112 
    12     
     13PATH_APP = get_app_dir()  
     14 
    1315class DocumentationWindow(Frame): 
    14     def __init__(self, parent, id, path, title, size=(850, 540)): 
     16    def __init__(self, parent, id, path, title='Help', size=(850, 540)): 
    1517        Frame.__init__(self, parent, id, title, size=size) 
    1618 
     
    1921            docs_path = os.path.join(os.environ[SPHINX_DOC_ENV]) 
    2022        else: 
    21             docs_path = os.path.join(PATH_APP, "..", "..", "doc") 
     23            # For the installer, docs are in a top-level directory.  We're not 
     24            # bothering to worry about docs when running using the old 
     25            # (non - run.py) way. 
     26            docs_path = os.path.join(PATH_APP, "doc") 
    2227 
    23         if (not os.path.exists(docs_path)): 
    24             print "logging" 
     28        if not os.path.exists(docs_path): 
    2529            logging.error("Could not find Sphinx documentation at %s \ 
    2630            -- has it been built?", docs_path) 
     
    3842 
    3943            webbrowser.open_new_tab("file:///" + docs_path + "/" + path) 
    40             print ("file:///" + docs_path + "/" + path) 
    4144 
    4245  
Note: See TracChangeset for help on using the changeset viewer.