#!/usr/bin/env python3
# App launcher
def init():
import sys
sys.dont_write_bytecode = True
import os
if getattr(sys, 'frozen', False) and hasattr(sys, '_MEIPASS'):
s = os.path.realpath(sys.executable)
else:
s = os.path.realpath(__file__)
sys.path.insert(0,os.path.join(os.path.dirname(s),"user","modules"))
global app
import app
app.init(s,"pycapi") # Change the second argument to your app name, I recommend using your domain if you have one. For example, If you own "example.com", and the program is called "app", then you should name it com.example.app.
init()
if __name__ == "__main__":
app.mod["main"].main()