From 9ccf2f552be246f7912e9dc923f8da8ae47fe544 Mon Sep 17 00:00:00 2001 From: Lex Neva Date: Wed, 10 Apr 2019 23:37:16 -0400 Subject: switch print pdf gui to electron --- lib/gui/electron.py | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 lib/gui/electron.py (limited to 'lib/gui/electron.py') diff --git a/lib/gui/electron.py b/lib/gui/electron.py new file mode 100644 index 00000000..cad86a16 --- /dev/null +++ b/lib/gui/electron.py @@ -0,0 +1,16 @@ +import os +import subprocess + +from ..utils import get_bundled_dir + + +app_process = None + + +def open_url(url): + global app + + electron_path = os.path.join(get_bundled_dir("electron"), "out", "inkstitch-linux-x64", "inkstitch-gui") + app_process = subprocess.Popen([electron_path, url]) + + return app_process -- cgit v1.2.3