Changeset d3b0c77 in sasview for src/sas/sascalc/fit/models.py
- Timestamp:
- Sep 23, 2017 4:24:27 PM (7 years ago)
- Branches:
- master, ESS_GUI, ESS_GUI_Docs, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_iss959, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc, magnetic_scatt, release-4.2.2, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
- Children:
- b963b20, fca1f50
- Parents:
- 9706d88 (diff), dba8557 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/sascalc/fit/models.py
r9706d88 rd3b0c77 4 4 from __future__ import print_function 5 5 6 import traceback7 6 import os 8 7 import sys 9 import os.path10 # Time is needed by the log method11 8 import time 12 9 import datetime 13 10 import logging 11 import traceback 14 12 import py_compile 15 13 import shutil 16 #?? from copy import copy17 14 18 15 from sasmodels.sasview_model import load_custom_model, load_standard_models 19 from sasmodels.sasview_model import MultiplicationModel 20 #?? from sas.sasgui.perspectives.fitting.fitpage import CUSTOM_MODEL 16 17 from sas.sasgui import get_user_dir 21 18 22 19 # Explicitly import from the pluginmodel module so that py2exe … … 29 26 30 27 PLUGIN_DIR = 'plugin_models' 31 PLUGIN_LOG = os.path.join(os.path.expanduser("~"), '.sasview', PLUGIN_DIR, 32 "plugins.log") 28 PLUGIN_LOG = os.path.join(get_user_dir(), PLUGIN_DIR, "plugins.log") 33 29 PLUGIN_NAME_BASE = '[plug-in] ' 34 30
Note: See TracChangeset
for help on using the changeset viewer.