source: sasview/sasview/sasview.py @ 985ad94

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"""
3Base 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################################################################################
14import sys
15import os
16
17from sas.sasview.logger_config import SetupLogger
18
19logger = SetupLogger(__name__).config_production()
20
21# Log the start of the session
22logger.info(" --- SasView session started ---")
23# Log the python version
24logger.info("Python: %s" % sys.version)
25
26reload(sys)
27sys.setdefaultencoding("iso-8859-1")
28
29PLUGIN_MODEL_DIR = 'plugin_models'
30APP_NAME = 'SasView'
31
32def 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
43if __name__ == "__main__":
44    runSasView()
Note: See TracBrowser for help on using the repository browser.