mirror of
https://github.com/freedomofpress/dangerzone.git
synced 2025-04-29 02:12:36 +02:00
13 lines
417 B
Python
13 lines
417 B
Python
import os
|
|
import sys
|
|
from .container import container_main
|
|
|
|
dangerzone_version = "0.1.1"
|
|
|
|
# This is a hack for Windows and Mac to be able to run dangerzone-container, even though
|
|
# PyInstaller builds a single binary
|
|
if os.path.basename(sys.argv[0]) == "dangerzone-container":
|
|
main = container_main
|
|
else:
|
|
# If the binary isn't "dangerzone-contatiner", then launch the GUI
|
|
from .gui import gui_main as main
|