Make strip-ansi Mac-only

This commit is contained in:
Micah Lee 2021-06-22 13:40:08 -07:00
parent d3d417ee84
commit e3dc7988e9
No known key found for this signature in database
GPG key ID: 403C2657CD994F73
2 changed files with 3 additions and 2 deletions

View file

@ -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

View file

@ -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"}