Ignore:
Timestamp:
Oct 6, 2018 10:20:50 AM (6 years ago)
Author:
piotr
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:
f20ea3f
Parents:
00a40bd
Message:

Fixed splash screen in release.
Fixed dQ data resolution for files with dQ.
SASVIEW-1200

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/sas/qtgui/MainWindow/MainWindow.py

    ra486918 rb14db78  
    66from PyQt5.QtWidgets import QApplication 
    77from PyQt5.QtGui import QPixmap 
     8import os 
    89import sys 
    910# Local UI 
     
    4445    The screen will disappear as soon as the event loop starts. 
    4546    """ 
    46     # TODO: standardize path to images 
    47     pixmap = QPixmap("src/sas/qtgui/images/SVwelcome_mini.png") 
     47    pixmap_path = "images/SVwelcome_mini.png" 
     48    if os.path.splitext(sys.argv[0])[1].lower() == ".py": 
     49        pixmap_path = "src/sas/qtgui/images/SVwelcome_mini.png" 
     50    pixmap = QPixmap(pixmap_path) 
    4851    splashScreen = QSplashScreen(pixmap) 
    4952    return splashScreen 
Note: See TracChangeset for help on using the changeset viewer.