diff --git a/dangerzone/gui/__init__.py b/dangerzone/gui/__init__.py index 045d133..932ddeb 100644 --- a/dangerzone/gui/__init__.py +++ b/dangerzone/gui/__init__.py @@ -5,7 +5,6 @@ import platform import click import uuid from PySide2 import QtCore, QtWidgets -from strip_ansi import strip_ansi from .common import GuiCommon from .main_window import MainWindow @@ -55,6 +54,8 @@ def gui_main(custom_container, filename): # Strip ANSI colors from stdout output, to prevent terminal colors from breaking # the macOS GUI app + from strip_ansi import strip_ansi + class StdoutFilter: def __init__(self, stream): self.stream = stream diff --git a/pyproject.toml b/pyproject.toml index 32144ce..06bf852 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -18,8 +18,8 @@ wmi = {version = "*", platform = "win32"} pyxdg = {version = "*", platform = "linux"} pyobjc-core = {version = "*", platform = "darwin"} pyobjc-framework-launchservices = {version = "*", platform = "darwin"} +strip-ansi = {version = "*", platform = "darwin"} colorama = "^0.4.4" -strip-ansi = "^0.1.1" [tool.poetry.dev-dependencies] pyinstaller = {version = "*", platform = "darwin"}