Errors handling when importing native color scheme
This commit is contained in:
parent
5184ed4d59
commit
0b53361e61
|
@ -93,6 +93,7 @@ else:
|
|||
exec(open("ip2e-conf.py").read())
|
||||
|
||||
#Import native OS color scheme
|
||||
try:
|
||||
def GreenColor():
|
||||
if os.name == "posix":
|
||||
GreenColor = (chr(27)+"[1;32m")
|
||||
|
@ -111,6 +112,8 @@ def OrangeColor():
|
|||
print (OrangeColor+"", end="")
|
||||
elif os.name == "nt":
|
||||
os.system("color 6")
|
||||
except:
|
||||
print ("Error importing native color scheme")
|
||||
|
||||
#Check if exists a previous log.file.
|
||||
if os.path.isfile("ip2e.log"):
|
||||
|
|
Loading…
Reference in New Issue
Block a user