Ignore:
File:
1 edited

Legend:

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

    rd7ee5866 r959eb01  
    2020import urllib 
    2121import sys 
     22 
     23logger = logging.getLogger(__name__) 
    2224 
    2325SPHINX_DOC_ENV = "SASVIEW_DOC_PATH" 
     
    7173 
    7274        if not os.path.exists(file_path): 
    73             logging.error("Could not find Sphinx documentation at %s \ 
     75            logger.error("Could not find Sphinx documentation at %s \ 
    7476            -- has it been built?", file_path) 
    75         #Commenting following 5 lines, so default browser is forced 
    76         #This is due to CDN mathjax discontinuation of service, intenal help 
    77         #browser should be back with qt version 
    78         #Note added by Wojtek Potrzebowski, July 4th 2017 
    79         # elif WX_SUPPORTS_HTML2: 
    80         #     # Complete HTML/CSS support! 
    81         #     self.view = html.WebView.New(self) 
    82         #     self.view.LoadURL(url) 
    83         #     self.Show() 
     77        elif WX_SUPPORTS_HTML2: 
     78            # Complete HTML/CSS support! 
     79            self.view = html.WebView.New(self) 
     80            self.view.LoadURL(url) 
     81            self.Show() 
    8482        else: 
    85             logging.error("No html2 support, popping up a web browser") 
     83            logger.error("No html2 support, popping up a web browser") 
    8684            #For cases that do not build against current version dependency 
    8785            # Wx 3.0 we provide a webbrowser call - this is particularly for 
Note: See TracChangeset for help on using the changeset viewer.