mirror of
https://github.com/DYefremov/DemonEditor.git
synced 2026-01-19 14:03:17 +01:00
22 lines
510 B
Python
Executable File
22 lines
510 B
Python
Executable File
#!/usr/bin/env python3
|
|
import os
|
|
|
|
# For launching from the bundle.
|
|
if os.getcwd() == "/":
|
|
os.chdir("/Applications/DemonEditor.app/Contents/MacOS/")
|
|
|
|
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"
|
|
|
|
from app.ui.main_app_window import start_app
|
|
|
|
start_app()
|