ESS_GUIESS_GUI_DocsESS_GUI_batch_fittingESS_GUI_bumps_abstractionESS_GUI_iss1116ESS_GUI_iss879ESS_GUI_iss959ESS_GUI_openclESS_GUI_orderingESS_GUI_sync_sascalc
Last change
on this file since 985ad94 was
985ad94,
checked in by Piotr Rozyczko <rozyczko@…>, 7 years ago
|
Fixed pyinstaller build
|
-
Property mode set to
100644
|
File size:
1.2 KB
|
Line | |
---|
1 | # -*- coding: utf-8 -*- |
---|
2 | """ |
---|
3 | Base module for loading and running the main SasView application. |
---|
4 | """ |
---|
5 | ################################################################################ |
---|
6 | # This software was developed by the University of Tennessee as part of the |
---|
7 | # Distributed Data Analysis of Neutron Scattering Experiments (DANSE) |
---|
8 | # project funded by the US National Science Foundation. |
---|
9 | # |
---|
10 | # See the license text in license.txt |
---|
11 | # |
---|
12 | # copyright 2009, University of Tennessee |
---|
13 | ################################################################################ |
---|
14 | import sys |
---|
15 | import os |
---|
16 | |
---|
17 | from sas.sasview.logger_config import SetupLogger |
---|
18 | |
---|
19 | logger = SetupLogger(__name__).config_production() |
---|
20 | |
---|
21 | # Log the start of the session |
---|
22 | logger.info(" --- SasView session started ---") |
---|
23 | # Log the python version |
---|
24 | logger.info("Python: %s" % sys.version) |
---|
25 | |
---|
26 | reload(sys) |
---|
27 | sys.setdefaultencoding("iso-8859-1") |
---|
28 | |
---|
29 | PLUGIN_MODEL_DIR = 'plugin_models' |
---|
30 | APP_NAME = 'SasView' |
---|
31 | |
---|
32 | def runSasView(): |
---|
33 | """ |
---|
34 | __main__ method for loading and running SasView |
---|
35 | """ |
---|
36 | from multiprocessing import freeze_support |
---|
37 | freeze_support() |
---|
38 | os.environ['QT_API'] = "pyqt" |
---|
39 | from sas.qtgui.MainWindow.MainWindow import run |
---|
40 | run() |
---|
41 | |
---|
42 | |
---|
43 | if __name__ == "__main__": |
---|
44 | runSasView() |
---|
Note: See
TracBrowser
for help on using the repository browser.