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