source: sasview/sasview/sasview.py @ 2a8bd705

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 2a8bd705 was 2a8bd705, checked in by Piotr Rozyczko <rozyczko@…>, 7 years ago

Changes to allow pyinstaller builds

  • Property mode set to 100644
File size: 1.1 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
15
16from sas.sasview.logger_config import SetupLogger
17
18logger = SetupLogger(__name__).config_production()
19
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
26
27reload(sys)
28sys.setdefaultencoding("iso-8859-1")
29
30PLUGIN_MODEL_DIR = 'plugin_models'
31APP_NAME = 'SasView'
32
33def runSasView():
34    """
35    __main__ method for loading and running SasView
36    """
37    from multiprocessing import freeze_support
38    freeze_support()
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.