5897 home = pythonDocDir |
5897 home = pythonDocDir |
5898 |
5898 |
5899 if home.endswith(".chm"): |
5899 if home.endswith(".chm"): |
5900 self.__chmViewer(home) |
5900 self.__chmViewer(home) |
5901 else: |
5901 else: |
|
5902 # TODO: add logic for internal help viewer (= 0) |
5902 hvType = Preferences.getWebBrowser("HelpViewerType") |
5903 hvType = Preferences.getWebBrowser("HelpViewerType") |
5903 if hvType == 1: |
5904 if hvType == 1: |
5904 self.launchHelpViewer(home) |
5905 self.launchHelpViewer(home) |
5905 elif hvType == 2: |
5906 elif hvType == 2: |
5906 if home.startswith("qthelp://"): |
5907 if home.startswith("qthelp://"): |
5951 if Utilities.isWindowsPlatform(): |
5952 if Utilities.isWindowsPlatform(): |
5952 home = "file:///" + Utilities.fromNativeSeparators(home) |
5953 home = "file:///" + Utilities.fromNativeSeparators(home) |
5953 else: |
5954 else: |
5954 home = "file://" + home |
5955 home = "file://" + home |
5955 |
5956 |
|
5957 # TODO: add logic for internal help viewer (= 0) |
5956 hvType = Preferences.getWebBrowser("HelpViewerType") |
5958 hvType = Preferences.getWebBrowser("HelpViewerType") |
5957 if hvType == 1: |
5959 if hvType == 1: |
5958 self.launchHelpViewer(home) |
5960 self.launchHelpViewer(home) |
5959 elif hvType == 2: |
5961 elif hvType == 2: |
5960 if home.startswith("qthelp://"): |
5962 if home.startswith("qthelp://"): |
6056 if Utilities.isWindowsPlatform(): |
6059 if Utilities.isWindowsPlatform(): |
6057 home = "file:///" + Utilities.fromNativeSeparators(home) |
6060 home = "file:///" + Utilities.fromNativeSeparators(home) |
6058 else: |
6061 else: |
6059 home = "file://" + home |
6062 home = "file://" + home |
6060 |
6063 |
|
6064 # TODO: add logic for internal help viewer (= 0) |
6061 hvType = Preferences.getWebBrowser("HelpViewerType") |
6065 hvType = Preferences.getWebBrowser("HelpViewerType") |
6062 if hvType == 1: |
6066 if hvType == 1: |
6063 self.launchHelpViewer(home) |
6067 self.launchHelpViewer(home) |
6064 elif hvType == 2: |
6068 elif hvType == 2: |
6065 if home.startswith("qthelp://"): |
6069 if home.startswith("qthelp://"): |