Nils
4 years ago
4 changed files with 16140 additions and 2 deletions
File diff suppressed because it is too large
@ -0,0 +1,18 @@ |
|||
#! /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 |
@ -0,0 +1,22 @@ |
|||
#!/usr/bin/env python3 |
|||
# encoding: utf-8 |
|||
# file: __main__.py |
|||
|
|||
""" |
|||
Symlink this file to root __main__.py |
|||
|
|||
This file is an alternativ to the python launcher ./$(PROGRAM) when using zipapp. |
|||
Any code changes there must be manually recplicated here. |
|||
|
|||
We do NOT need to change the working dir here, as in the direct launcher. |
|||
python zipapp uses indeed zip and will resolve symlinks to real files, thus this will become |
|||
a real file in the right place, resulting in the right cwd. |
|||
""" |
|||
|
|||
if __name__ == '__main__': |
|||
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 |
|||
|
Loading…
Reference in new issue