- Timestamp:
- Nov 23, 2018 9:37:05 AM (6 years ago)
- Branches:
- ESS_GUI, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc
- Children:
- 2e5081b, 531dd64
- Parents:
- 9817207
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/qtgui/Perspectives/Fitting/FittingWidget.py
r9817207 r9c05f22 1 1 import json 2 2 import os 3 import sys 3 4 from collections import defaultdict 4 5 … … 1461 1462 helpfile = "fitting.html" 1462 1463 if tab_id == 0: 1463 helpfile = "fitting_help.html" 1464 # Look at the model and if set, pull out its help page 1465 if self.kernel_module is not None and hasattr(self.kernel_module, 'name'): 1466 # See if the help file is there 1467 # This breaks encapsulation a bit, though. 1468 full_path = GuiUtils.HELP_DIRECTORY_LOCATION 1469 sas_path = os.path.abspath(os.path.dirname(sys.argv[0])) 1470 location = sas_path + "/" + full_path 1471 location += "/user/models/" + self.kernel_module.id + ".html" 1472 if os.path.isfile(location): 1473 # We have HTML for this model - show it 1474 tree_location = "/user/models/" 1475 helpfile = self.kernel_module.id + ".html" 1476 else: 1477 helpfile = "fitting_help.html" 1464 1478 elif tab_id == 1: 1465 1479 helpfile = "residuals_help.html"
Note: See TracChangeset
for help on using the changeset viewer.