4412 if os.path.exists(possibleHome): |
4412 if os.path.exists(possibleHome): |
4413 home = possibleHome |
4413 home = possibleHome |
4414 break |
4414 break |
4415 else: |
4415 else: |
4416 home = pyqt4DocDir |
4416 home = pyqt4DocDir |
4417 |
|
4418 if home: |
|
4419 home = "file://" + home |
|
4420 |
4417 |
4421 if not home or not os.path.exists(home): |
4418 if not home or not os.path.exists(home): |
4422 QMessageBox.warning(None, |
4419 QMessageBox.warning(None, |
4423 self.trUtf8("Documentation Missing"), |
4420 self.trUtf8("Documentation Missing"), |
4424 self.trUtf8("""<p>The documentation starting point""" |
4421 self.trUtf8("""<p>The documentation starting point""" |
4425 """ "<b>{0}</b>" could not be found.</p>""")\ |
4422 """ "<b>{0}</b>" could not be found.</p>""")\ |
4426 .format(home)) |
4423 .format(home)) |
4427 return |
4424 return |
|
4425 |
|
4426 home = "file://" + home |
4428 else: |
4427 else: |
4429 home = pyqt4DocDir |
4428 home = pyqt4DocDir |
4430 |
4429 |
4431 hvType = Preferences.getHelp("HelpViewerType") |
4430 hvType = Preferences.getHelp("HelpViewerType") |
4432 if hvType == 1: |
4431 if hvType == 1: |
4453 self.trUtf8("""<p>The documentation starting point""" |
4452 self.trUtf8("""<p>The documentation starting point""" |
4454 """ "<b>{0}</b>" could not be found.</p>""")\ |
4453 """ "<b>{0}</b>" could not be found.</p>""")\ |
4455 .format(home)) |
4454 .format(home)) |
4456 return |
4455 return |
4457 |
4456 |
4458 ## home = "file://" + home |
4457 home = "file://" + home |
4459 |
4458 |
4460 hvType = Preferences.getHelp("HelpViewerType") |
4459 hvType = Preferences.getHelp("HelpViewerType") |
4461 if hvType == 1: |
4460 if hvType == 1: |
4462 self.launchHelpViewer(home) |
4461 self.launchHelpViewer(home) |
4463 elif hvType == 2: |
4462 elif hvType == 2: |