dangerzone/dangerzone/__init__.py
2020-03-17 11:11:47 -07:00

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