corretto un typo stupidissimo che mi ha fatto perdere un sacco di tempo
This commit is contained in:
@@ -3,7 +3,7 @@ Created on 2 nov 2019
|
||||
|
||||
@author: Emanuele Trabattoni
|
||||
'''
|
||||
import sys
|
||||
import sys, os
|
||||
import json
|
||||
import logging
|
||||
import colorama
|
||||
@@ -13,7 +13,7 @@ class fancyLogger(object):
|
||||
Colorizza il logger di python, per un' esperienza stile willy wonka
|
||||
'''
|
||||
def __init__(self, name="Logger", consoleLog=True, fileLog=True):
|
||||
settings = json.load(open("./testSettings.json"))["logger"]
|
||||
settings = json.load(open(os.getcwd()+r"\libbananasplit\testEN.json"))["logger"]
|
||||
colorama.init(convert=True)
|
||||
self.LRED = colorama.Fore.LIGHTRED_EX
|
||||
self.RED = colorama.Fore.RED
|
||||
@@ -236,7 +236,6 @@ class bananaSPLITTER(threading.Thread):
|
||||
out.close()
|
||||
except IOError as e:
|
||||
print("OOPS! Qualcosa e\' andato storto, non riesco a scrivere il file: {}".format(e))
|
||||
continue
|
||||
pass
|
||||
|
||||
if __name__ == "__main__":
|
||||
@@ -3,13 +3,15 @@ Created on 1 dic 2019
|
||||
|
||||
@author: Emanuele Trabattoni
|
||||
'''
|
||||
import os
|
||||
from libsplit import bananaSPLITTER
|
||||
from libconfload import bananaCONF
|
||||
from libfancylogger import fancyLogger
|
||||
|
||||
|
||||
print(os.getcwd())
|
||||
logger = fancyLogger(fileLog = False)
|
||||
confl = bananaCONF()
|
||||
confl = bananaCONF(workdir=r"./libbananasplit", logger=logger)
|
||||
splconf = confl.use("testEN")
|
||||
splitter = bananaSPLITTER()
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user