corretto un typo stupidissimo che mi ha fatto perdere un sacco di tempo

This commit is contained in:
2019-12-01 17:04:55 +01:00
parent ef91f8d26a
commit ccc06bc5f1
7 changed files with 6 additions and 5 deletions

View File

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

View File

@@ -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__":

View File

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