'''This is the main file. This launches the application.''' import lib.engine.log # so logging's info/debug are logged from sys import argv from panda3d.core import load_prc_file_data if '--version' in argv: load_prc_file_data('', 'window-type none') from os.path import exists from traceback import print_exc from pmachines.pmachines import Pmachines from p3d_appimage import AppImageBuilder if __name__ == '__main__' or exists('main.pyo'): pmachines = Pmachines() if pmachines.updating: AppImageBuilder('pmachines').update() elif not pmachines.version: try: pmachines.base.run() except Exception: print_exc()