#! /usr/bin/env python3 # -*- coding: utf-8 -*- #Symlink this to root dir as the program name without extension import os import sys #print (__file__) #this reports the name of the symlink. os.chdir(os.path.dirname(__file__)) sys.path.insert(0, os.getcwd()) from template import start #Executes various start up checks and sets up our environment likes search paths from qtgui import mainwindow #which in turn imports the engine and starts the engine with start.profiler(): mainwindow.MainWindow().qtApp.exec_() #Program is over. Code here does not get executed. Quit is done via NSM in mainWindow._nsmQuit