Files
DemonEditor/start.py

20 lines
530 B
Python
Raw Normal View History

2017-11-09 19:01:09 +03:00
#!/usr/bin/env python3
2019-10-23 12:38:23 +03:00
try:
from Cocoa import NSBundle
except ImportError as e:
print(e)
else:
ns_bundle = NSBundle.mainBundle()
if ns_bundle:
ns_bundle = ns_bundle.localizedInfoDictionary() or ns_bundle.infoDictionary()
if ns_bundle:
ns_bundle["CFBundleName"] = "DemonEditor"
2020-05-12 15:19:47 +03:00
if __name__ == "__main__":
from multiprocessing import set_start_method
from app.ui.main_app_window import start_app
2017-11-09 19:01:09 +03:00
2020-05-12 15:19:47 +03:00
set_start_method("fork") # For compatibility [Python > 3.7]
start_app()