/usr/lib/python2.7/dist-packages/spykeviewer/start.py is in spykeviewer 0.4.4-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 | import sys
import os
import platform
import locale
# Hack to circumvent OS X locale bug
if platform.system() == 'Darwin':
if os.getenv('LC_CTYPE') == 'UTF-8':
os.environ['LC_CTYPE'] = ''
else:
locale.setlocale(locale.LC_ALL, '')
# Use new style API
import sip
sip.setapi('QString', 2)
sip.setapi('QDate', 2)
sip.setapi('QDateTime', 2)
sip.setapi('QTextStream', 2)
sip.setapi('QTime', 2)
sip.setapi('QVariant', 2)
sip.setapi('QUrl', 2)
sip.setapi('QVariant', 2)
from PyQt4 import QtGui
from PyQt4.QtCore import Qt
import api
import splash_rc
# The entry point for Spyke Viewer
def main():
api.app = QtGui.QApplication(sys.argv)
splash_pic = QtGui.QPixmap(':/splash/splashimg')
splash = QtGui.QSplashScreen(splash_pic)
splash.setMask(splash_pic.mask())
splash.showMessage('Starting application...', Qt.AlignCenter | Qt.AlignBottom)
splash.show()
splash.raise_()
api.app.processEvents()
from ui.main_window_neo import MainWindowNeo
ui = MainWindowNeo(splash=splash)
splash.finish(ui)
ui.show()
ui.raise_()
sys.exit(api.app.exec_())
|