remove color codes when running on windows
This commit is contained in:
parent
8cfba9eb4d
commit
b1fb5f34cc
@ -25,6 +25,7 @@
|
|||||||
# - add feature: keepass integration? isnt there something like this already?
|
# - add feature: keepass integration? isnt there something like this already?
|
||||||
|
|
||||||
|
|
||||||
|
from os import name
|
||||||
from sys import argv, stdout, exit
|
from sys import argv, stdout, exit
|
||||||
from argparse import ArgumentParser
|
from argparse import ArgumentParser
|
||||||
from hashlib import sha1
|
from hashlib import sha1
|
||||||
@ -32,6 +33,9 @@ from getpass import getpass
|
|||||||
from requests import get
|
from requests import get
|
||||||
|
|
||||||
|
|
||||||
|
if name == 'nt':
|
||||||
|
(RED, GREEN, RESET) = ("", "", "")
|
||||||
|
else:
|
||||||
RED = "\033[1;31m"
|
RED = "\033[1;31m"
|
||||||
GREEN = "\033[0;32m"
|
GREEN = "\033[0;32m"
|
||||||
RESET = "\033[0;0m"
|
RESET = "\033[0;0m"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user