Add colorama to Pyinstaller spec and requirements.txt
This commit is contained in:
@@ -29,8 +29,15 @@ import collections
|
||||
|
||||
from pathlib import Path
|
||||
|
||||
# Optionally import colorama to enable colored output for Windows
|
||||
try:
|
||||
import colorama
|
||||
colorama.init()
|
||||
NO_COLOR = False
|
||||
except ImportError:
|
||||
NO_COLOR = True if sys.platform == 'win32' else False
|
||||
|
||||
log = logging.getLogger(__name__)
|
||||
NO_COLOR = False
|
||||
|
||||
# Java Archive Extensions
|
||||
JAR_EXTENSIONS = (".jar", ".war", ".ear")
|
||||
|
||||
@@ -5,6 +5,7 @@ block_cipher = None
|
||||
|
||||
|
||||
a = Analysis(['log4j-finder.py'],
|
||||
hiddenimports=['colorama'],
|
||||
win_no_prefer_redirects=False,
|
||||
win_private_assemblies=False,
|
||||
cipher=block_cipher,
|
||||
|
||||
1
requirements.txt
Normal file
1
requirements.txt
Normal file
@@ -0,0 +1 @@
|
||||
colorama
|
||||
Reference in New Issue
Block a user