mirror of
https://github.com/freedomofpress/dangerzone.git
synced 2025-04-28 18:02:38 +02:00
Make strip-ansi Mac-only
This commit is contained in:
parent
d3d417ee84
commit
e3dc7988e9
2 changed files with 3 additions and 2 deletions
|
@ -5,7 +5,6 @@ import platform
|
||||||
import click
|
import click
|
||||||
import uuid
|
import uuid
|
||||||
from PySide2 import QtCore, QtWidgets
|
from PySide2 import QtCore, QtWidgets
|
||||||
from strip_ansi import strip_ansi
|
|
||||||
|
|
||||||
from .common import GuiCommon
|
from .common import GuiCommon
|
||||||
from .main_window import MainWindow
|
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
|
# Strip ANSI colors from stdout output, to prevent terminal colors from breaking
|
||||||
# the macOS GUI app
|
# the macOS GUI app
|
||||||
|
from strip_ansi import strip_ansi
|
||||||
|
|
||||||
class StdoutFilter:
|
class StdoutFilter:
|
||||||
def __init__(self, stream):
|
def __init__(self, stream):
|
||||||
self.stream = stream
|
self.stream = stream
|
||||||
|
|
|
@ -18,8 +18,8 @@ wmi = {version = "*", platform = "win32"}
|
||||||
pyxdg = {version = "*", platform = "linux"}
|
pyxdg = {version = "*", platform = "linux"}
|
||||||
pyobjc-core = {version = "*", platform = "darwin"}
|
pyobjc-core = {version = "*", platform = "darwin"}
|
||||||
pyobjc-framework-launchservices = {version = "*", platform = "darwin"}
|
pyobjc-framework-launchservices = {version = "*", platform = "darwin"}
|
||||||
|
strip-ansi = {version = "*", platform = "darwin"}
|
||||||
colorama = "^0.4.4"
|
colorama = "^0.4.4"
|
||||||
strip-ansi = "^0.1.1"
|
|
||||||
|
|
||||||
[tool.poetry.dev-dependencies]
|
[tool.poetry.dev-dependencies]
|
||||||
pyinstaller = {version = "*", platform = "darwin"}
|
pyinstaller = {version = "*", platform = "darwin"}
|
||||||
|
|
Loading…
Reference in a new issue