Compare commits
19 Commits
ef91f8d26a
...
lib-devel
| Author | SHA1 | Date | |
|---|---|---|---|
| cf173843d2 | |||
| d8808ddf5b | |||
| b5ee32e924 | |||
| b69463a303 | |||
| 82710a73a3 | |||
| 275101eed3 | |||
| 3826c7d2d1 | |||
| 377251b59f | |||
| 428946e39a | |||
| c5662c8397 | |||
| e3307d8db5 | |||
| 01dd92e4da | |||
| 8628c3dbfb | |||
| d69a3d0628 | |||
| b6000c49fd | |||
| 851dcf103d | |||
| 4118ed82c3 | |||
| 435bb144ab | |||
| ccc06bc5f1 |
1
.gitignore
vendored
1
.gitignore
vendored
@@ -3,3 +3,4 @@
|
|||||||
/.pydevproject
|
/.pydevproject
|
||||||
/org.eclipse.core.resources.prefs
|
/org.eclipse.core.resources.prefs
|
||||||
bananaSPLIT/build
|
bananaSPLIT/build
|
||||||
|
/TestFiles/
|
||||||
|
|||||||
13811
TestFiles/GUARDIAN 1993.txt
Normal file
13811
TestFiles/GUARDIAN 1993.txt
Normal file
File diff suppressed because it is too large
Load Diff
22792
TestFiles/NYT 1990.txt
Normal file
22792
TestFiles/NYT 1990.txt
Normal file
File diff suppressed because it is too large
Load Diff
23149
TestFiles/NYT 1994.txt
Normal file
23149
TestFiles/NYT 1994.txt
Normal file
File diff suppressed because it is too large
Load Diff
30024
TestFiles/NYT 1997.txt
Normal file
30024
TestFiles/NYT 1997.txt
Normal file
File diff suppressed because it is too large
Load Diff
1
bananaSPLIT/.gitignore
vendored
1
bananaSPLIT/.gitignore
vendored
@@ -1 +1,2 @@
|
|||||||
*.py[ocd]
|
*.py[ocd]
|
||||||
|
/bananaSPLIT.exe.spec
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ class bananaCONF(object):
|
|||||||
|
|
||||||
def open(self):
|
def open(self):
|
||||||
self.log.info("Carico i file di configurazione")
|
self.log.info("Carico i file di configurazione")
|
||||||
self.fileList = glob.glob(self.workdir+"\\*.json")
|
self.fileList = glob.glob(r"*.json")
|
||||||
if len(self.fileList) > 0:
|
if len(self.fileList) > 0:
|
||||||
for f in self.fileList:
|
for f in self.fileList:
|
||||||
try:
|
try:
|
||||||
@@ -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
|
||||||
@@ -3,12 +3,12 @@ Created on 2 nov 2019
|
|||||||
|
|
||||||
@author: Emanuele Trabattoni
|
@author: Emanuele Trabattoni
|
||||||
'''
|
'''
|
||||||
from libfancylogger import fancyLogger
|
from slugify.slugify import slugify
|
||||||
import threading, time, parse, re, copy, slugify, os
|
import time, parse, re, copy, os, threading
|
||||||
|
|
||||||
class bananaSPLITTER(threading.Thread):
|
class bananaSPLITTER(threading.Thread):
|
||||||
|
|
||||||
def __init__(self, fileParams=None, logger=None):
|
def __init__(self, fileParams=None, logger=None):
|
||||||
|
threading.Thread.__init__(self)
|
||||||
self.fileParams = fileParams
|
self.fileParams = fileParams
|
||||||
self.log = logger
|
self.log = logger
|
||||||
self.rawFile = None
|
self.rawFile = None
|
||||||
@@ -22,6 +22,7 @@ class bananaSPLITTER(threading.Thread):
|
|||||||
self.docStruct = self.fileParams['docStruct']
|
self.docStruct = self.fileParams['docStruct']
|
||||||
self.settings = self.fileParams['settings']
|
self.settings = self.fileParams['settings']
|
||||||
self.fileName = self.fileParams['name']
|
self.fileName = self.fileParams['name']
|
||||||
|
self.outPath = self.paths['OUTworkPath']+slugify(self.fileName)
|
||||||
self.beginTime = time.time()
|
self.beginTime = time.time()
|
||||||
pass
|
pass
|
||||||
else:
|
else:
|
||||||
@@ -30,9 +31,11 @@ class bananaSPLITTER(threading.Thread):
|
|||||||
|
|
||||||
def run(self):
|
def run(self):
|
||||||
self.log.info("Nuovo SPLITTER su file: {}".format(self.fileName))
|
self.log.info("Nuovo SPLITTER su file: {}".format(self.fileName))
|
||||||
|
try:
|
||||||
self.openFile()
|
self.openFile()
|
||||||
self.remEmptyLines()
|
self.remEmptyLines()
|
||||||
self.splitFile()
|
self.splitFile()
|
||||||
|
|
||||||
if self.settings['removeDuplicates']:
|
if self.settings['removeDuplicates']:
|
||||||
self.log.info("Controllo se ci sono dei duplicati..")
|
self.log.info("Controllo se ci sono dei duplicati..")
|
||||||
self.removeDuplicates()
|
self.removeDuplicates()
|
||||||
@@ -40,22 +43,45 @@ class bananaSPLITTER(threading.Thread):
|
|||||||
for idx, ff in enumerate(self.fileList):
|
for idx, ff in enumerate(self.fileList):
|
||||||
ff['duplicate']=False
|
ff['duplicate']=False
|
||||||
self.fileList[idx]=ff
|
self.fileList[idx]=ff
|
||||||
print('Salto il controllo dei duplicati..')
|
self.log.warn('Salto il controllo dei duplicati..')
|
||||||
|
# se il parse e la rimozione dei duplicati e' andata bene
|
||||||
|
# preparo e inizio il salvataggio
|
||||||
|
if os.path.exists(self.outPath):
|
||||||
|
if self.settings['removeOldFiles']:
|
||||||
|
os.chdir(self.outPath)
|
||||||
|
for f in os.listdir(self.outPath):
|
||||||
|
os.remove(f)
|
||||||
|
else:
|
||||||
|
raise FileExistsError("Non posso sovrascrivere i vecchi file, eliminali manualmente!")
|
||||||
|
else:
|
||||||
|
os.mkdir(self.outPath)
|
||||||
|
os.chdir(self.outPath)
|
||||||
if self.settings['saveSeparateFiles']:
|
if self.settings['saveSeparateFiles']:
|
||||||
self.saveSeparate()
|
self.saveSeparate()
|
||||||
if self.settings['saveBodyFile']:
|
if self.settings['saveBodyFile']:
|
||||||
self.saveBody()
|
self.saveBody()
|
||||||
|
self.log.info("L'elaborazione del file ha richiesto {:4.2f} sec".format(time.time()-self.beginTime))
|
||||||
|
|
||||||
|
except UnicodeDecodeError as ee:
|
||||||
|
self.log.critical("Il file [{}] contiene caratteri non compatibili con la codifica scelta! [{}]"
|
||||||
|
.format(self.fileParams['name'],ee))
|
||||||
|
except FileExistsError as fe:
|
||||||
|
self.log.critical(fe)
|
||||||
|
except BaseException as ee:
|
||||||
|
self.log.warning(ee)
|
||||||
pass
|
pass
|
||||||
|
|
||||||
def openFile(self):
|
def openFile(self):
|
||||||
try:
|
try:
|
||||||
self.info("Carico il contenuto..")
|
os.chdir(self.paths["INworkPath"])
|
||||||
|
self.log.info("Carico il contenuto..")
|
||||||
fp = open(self.fileParams['name'], mode='r', encoding=self.settings['encoding'])
|
fp = open(self.fileParams['name'], mode='r', encoding=self.settings['encoding'])
|
||||||
self.rawFile = fp.readlines()
|
self.rawFile = fp.readlines()
|
||||||
fp.close()
|
fp.close()
|
||||||
except IOError as e:
|
except IOError as e:
|
||||||
self.log.critical("Impossibile aprire il file: {}! [{}]".format(self.fileName,e))
|
self.log.critical("Impossibile aprire il file: {}! [{}]".format(self.fileName,e))
|
||||||
raise BaseException("OpenFile")
|
raise BaseException("OpenFile")
|
||||||
|
os.rmdir(self.outPath)
|
||||||
pass
|
pass
|
||||||
|
|
||||||
def remEmptyLines(self):
|
def remEmptyLines(self):
|
||||||
@@ -76,9 +102,12 @@ class bananaSPLITTER(threading.Thread):
|
|||||||
|
|
||||||
def splitFile(self): #porting del codice dal programma originale
|
def splitFile(self): #porting del codice dal programma originale
|
||||||
self.log.info("Individuo il contenuto..")
|
self.log.info("Individuo il contenuto..")
|
||||||
|
self.bodyCounter=0
|
||||||
|
self.duplicateNumber=0
|
||||||
docNumber = 0
|
docNumber = 0
|
||||||
docSkipped = 0
|
docSkipped = 0
|
||||||
docDate = {}
|
docDate = {}
|
||||||
|
title = ''
|
||||||
prevLine = ''
|
prevLine = ''
|
||||||
newsPaperName = ''
|
newsPaperName = ''
|
||||||
titleBegin = False
|
titleBegin = False
|
||||||
@@ -96,16 +125,16 @@ class bananaSPLITTER(threading.Thread):
|
|||||||
pass
|
pass
|
||||||
else:
|
else:
|
||||||
if self.settings["showSkipped"]:
|
if self.settings["showSkipped"]:
|
||||||
self.log.warning("Il conto dei documenti non torna! LexisNexis \
|
self.log.warn("Il conto dei documenti non torna! LexisNexis \
|
||||||
ne ha saltato qualcuno!\nPrecedente:{0}-Attuale:{1}".format(docNumber,nn["current"]))
|
ne ha saltato qualcuno!\nPrecedente:{0}-Attuale:{1}".format(docNumber,nn["current"]))
|
||||||
docSkipped+=1
|
docSkipped+=1
|
||||||
docNumber = nn["current"]
|
docNumber = nn["current"]
|
||||||
except:
|
except:
|
||||||
pass #non segnalare eccezione se il parse fallisce
|
pass #non segnalare eccezione se il parse fallisce
|
||||||
# ricerco la data
|
# ricerco la data
|
||||||
if (lineWords[self.settings['monthPosition']]).capitalize() in self.docParams['dateWords']:
|
if (lineWords[self.settings['monthPosition']]).capitalize() in self.docStruct['dateWords']:
|
||||||
try:
|
try:
|
||||||
docDate=parse.parse(self.docParams['dateFormat'],l).named
|
docDate=parse.parse(self.docStruct['dateFormat'],l).named
|
||||||
docDate['month']=docDate['month'].lstrip().rstrip().capitalize()
|
docDate['month']=docDate['month'].lstrip().rstrip().capitalize()
|
||||||
docDate['month']=self.docStruct['dateWords'].index(docDate['month'])+1
|
docDate['month']=self.docStruct['dateWords'].index(docDate['month'])+1
|
||||||
title = ''
|
title = ''
|
||||||
@@ -118,12 +147,12 @@ class bananaSPLITTER(threading.Thread):
|
|||||||
else:
|
else:
|
||||||
newsPaperName = self.settings['nameNotFoundStr']
|
newsPaperName = self.settings['nameNotFoundStr']
|
||||||
except:
|
except:
|
||||||
self.log.warning("E' successo qualcosa mentre stavo cercando il nome della pubblicazione,\
|
self.log.warn("E' successo qualcosa mentre stavo cercando il nome della pubblicazione,\
|
||||||
controlla i file di uscita! \n\t[{}]".format(prevLine.strip()))
|
controlla i file di uscita! [{}]".format(prevLine.strip()))
|
||||||
else:
|
else:
|
||||||
newsPaperName = self.settings['nameNotFoundStr']
|
newsPaperName = self.settings['nameNotFoundStr']
|
||||||
except:
|
except:
|
||||||
self.log.warning("Ho trovato una riga ambigua.. potrebbe essere una data ma non so: \n\t[{}]". format(l.strip('\r\n')))
|
self.log.warn("Ho trovato una riga ambigua.. potrebbe essere una data ma non so: [{}]". format(l.strip('\r\n')))
|
||||||
pass
|
pass
|
||||||
elif lineWords[0] in self.docStruct['headWords']:
|
elif lineWords[0] in self.docStruct['headWords']:
|
||||||
#cambio stato e inizializzo un nuovo documento da riempire
|
#cambio stato e inizializzo un nuovo documento da riempire
|
||||||
@@ -155,7 +184,7 @@ class bananaSPLITTER(threading.Thread):
|
|||||||
self.status = 'tail'
|
self.status = 'tail'
|
||||||
anomaly = False
|
anomaly = False
|
||||||
if docSep.match(l) is not None: #controlla se ci sono articoli che non hanno le parole chiave finali
|
if docSep.match(l) is not None: #controlla se ci sono articoli che non hanno le parole chiave finali
|
||||||
self.log.warning("Ho individuato una separatore valido prima che si chiusesse l'articolo precedente, controlla i tuoi file in uscita!\n\
|
self.log.warn("Ho individuato una separatore valido prima che si chiusesse l'articolo precedente, controlla i tuoi file in uscita!\n\
|
||||||
L'errore dovrebbe essere intorno all'articolo {} ma non sono sicuro! \n\t\t[{}]".format(docNumber, l.strip()))
|
L'errore dovrebbe essere intorno all'articolo {} ma non sono sicuro! \n\t\t[{}]".format(docNumber, l.strip()))
|
||||||
self.status = 'tail'
|
self.status = 'tail'
|
||||||
anomaly = True
|
anomaly = True
|
||||||
@@ -178,7 +207,7 @@ class bananaSPLITTER(threading.Thread):
|
|||||||
#ricerca terminata, espongo i risultati
|
#ricerca terminata, espongo i risultati
|
||||||
self.log.info("Nel file ho trovato {0} articoli..".format(self.bodyCounter))
|
self.log.info("Nel file ho trovato {0} articoli..".format(self.bodyCounter))
|
||||||
if docSkipped > 0:
|
if docSkipped > 0:
|
||||||
self.log.warning("Attentione, LexisNexis ne ha saltati {} !!!".format(docSkipped))
|
self.log.warn("Attentione, LexisNexis ne ha saltati {} !!!".format(docSkipped))
|
||||||
pass
|
pass
|
||||||
pass
|
pass
|
||||||
|
|
||||||
@@ -199,10 +228,12 @@ class bananaSPLITTER(threading.Thread):
|
|||||||
ff['duplicate'] = True
|
ff['duplicate'] = True
|
||||||
self.fileList[idx]=ff
|
self.fileList[idx]=ff
|
||||||
self.duplicateNumber+=1
|
self.duplicateNumber+=1
|
||||||
self.log.info("Ho rimosso {} duplicati di {} articoli..\n". format(self.duplicateNumber, len(duplicateList)))
|
self.log.info("Ho rimosso {} duplicati di {} articoli..". format(self.duplicateNumber, len(duplicateList)))
|
||||||
pass
|
pass
|
||||||
|
|
||||||
def saveSeparate(self):
|
def saveSeparate(self):
|
||||||
|
outFileCounter = 0
|
||||||
|
self.paths['OUTworkPath']=self.paths['OUTworkPath']+slugify(self.fileName)
|
||||||
self.log.info("Salvo gli articoli in file separati...")
|
self.log.info("Salvo gli articoli in file separati...")
|
||||||
self.log.debug("Persorso: {0}".format(self.paths['OUTworkPath'].format('nomeFile')))
|
self.log.debug("Persorso: {0}".format(self.paths['OUTworkPath'].format('nomeFile')))
|
||||||
for ff in self.fileList:
|
for ff in self.fileList:
|
||||||
@@ -210,37 +241,36 @@ class bananaSPLITTER(threading.Thread):
|
|||||||
if ff['duplicate'] == False:
|
if ff['duplicate'] == False:
|
||||||
fName=self.paths['OUTnameFormat'].format(title=slugify(ff['title'][:self.settings['maxTitleLen']]),\
|
fName=self.paths['OUTnameFormat'].format(title=slugify(ff['title'][:self.settings['maxTitleLen']]),\
|
||||||
filename=slugify(self.fileName),\
|
filename=slugify(self.fileName),\
|
||||||
docnum=self.bodyCounter,\
|
docnum=outFileCounter,\
|
||||||
papername=ff['newsPaperName'].strip(),\
|
papername=ff['newsPaperName'].strip(),\
|
||||||
**ff['date'])
|
**ff['date'])
|
||||||
out=open(self.paths['OUTworkPath']+'{0}'.format(fName),'wb')
|
out=open('{0}'.format(fName),'wb')
|
||||||
if self.settings['includeTitle']:
|
if self.settings['includeTitle']:
|
||||||
ff['content'] = ff['title']+os.linesep+ff['content']
|
ff['content'] = ff['title']+os.linesep+ff['content']
|
||||||
out.write(ff['content'].encode(self.settings['encoding']))
|
out.write(ff['content'].encode(self.settings['encoding']))
|
||||||
out.close()
|
out.close()
|
||||||
self.bodyCounter+=1
|
outFileCounter+=1
|
||||||
except IOError as e:
|
except IOError as e:
|
||||||
self.log.error("Qualcosa e\' andato storto, non riesco a scrivere il file: {}".format(e))
|
self.log.error("Qualcosa e\' andato storto, non riesco a scrivere il file: {}".format(e))
|
||||||
continue
|
continue
|
||||||
|
if outFileCounter < self.bodyCounter:
|
||||||
|
raise BaseException("Ho salvato meno file rispetto a quelli trovati!")
|
||||||
pass
|
pass
|
||||||
|
|
||||||
def saveBody(self):
|
def saveBody(self):
|
||||||
print('Salvo gli articoli in un singolo file vicino agli originali...')
|
self.log.info('Salvo gli articoli in un singolo file vicino agli originali...')
|
||||||
print ('Persorso: {0}'.format(self.paths['OUTworkPath'].format('nomeFile')))
|
self.log.debug('Persorso: {0}'.format(self.outPath))
|
||||||
|
os.chdir(self.outPath)
|
||||||
try:
|
try:
|
||||||
fName=slugify(self.fileName)
|
fName=slugify(self.fileName)
|
||||||
fName='BODYFILE_{0}_{1}.txt'.format(self.fileCounter,fName[:self.settings['maxTitleLen']])
|
fName='BODYFILE_{0}.txt'.format(fName[:self.settings['maxTitleLen']])
|
||||||
fileContent = os.linesep.join([cc['content'] for cc in self.fileList])
|
fileContent = os.linesep.join([cc['content'] for cc in self.fileList])
|
||||||
out=open(self.paths['OUTworkPath']+'{0}'.format(fName),'wb')
|
out=open('{0}'.format(fName),'wb')
|
||||||
out.write(fileContent.encode(self.settings['encoding']))
|
out.write(fileContent.encode(self.settings['encoding']))
|
||||||
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))
|
self.log.error("Qualcosa e\' andato storto, non riesco a scrivere il file: {}".format(e))
|
||||||
continue
|
|
||||||
pass
|
pass
|
||||||
|
|
||||||
if __name__ == "__main__":
|
|
||||||
logg = fancyLogger(name="LibSplit")
|
|
||||||
spp = bananaSPLITTER(fileParams="testfile.txt", logger=logg)
|
|
||||||
|
|
||||||
|
|
||||||
@@ -6,9 +6,10 @@
|
|||||||
"logTimeFormat": "%m-%d %H:%M:%S"
|
"logTimeFormat": "%m-%d %H:%M:%S"
|
||||||
},
|
},
|
||||||
"splitter": {
|
"splitter": {
|
||||||
|
"name": "",
|
||||||
"paths": {
|
"paths": {
|
||||||
"INworkPath": "D:\\Test\\",
|
"INworkPath": "D:\\Emanuele\\Documenti\\workspace\\bananaSPLIT\\TestFiles\\",
|
||||||
"OUTworkPath": "D:\\Test\\Separati\\",
|
"OUTworkPath": "H:\\",
|
||||||
"OUTnameFormat": "TEST_{docnum}_{year:04d}{month:02d}{day:02d}_{title}.txt"
|
"OUTnameFormat": "TEST_{docnum}_{year:04d}{month:02d}{day:02d}_{title}.txt"
|
||||||
},
|
},
|
||||||
"docStruct": {
|
"docStruct": {
|
||||||
@@ -57,8 +58,8 @@
|
|||||||
"nameNotFoundStr": "ND",
|
"nameNotFoundStr": "ND",
|
||||||
"includeTitle": true,
|
"includeTitle": true,
|
||||||
"removeDuplicates": true,
|
"removeDuplicates": true,
|
||||||
"showSkipped": false,
|
"showSkipped": true,
|
||||||
"showRemovedDuplicates": true,
|
"showRemovedDuplicates": false,
|
||||||
"maxTitleLen": 32,
|
"maxTitleLen": 32,
|
||||||
"loadTXT": true,
|
"loadTXT": true,
|
||||||
"loadDOCX": false,
|
"loadDOCX": false,
|
||||||
@@ -6,9 +6,10 @@
|
|||||||
"logTimeFormat": "%m-%d %H:%M:%S"
|
"logTimeFormat": "%m-%d %H:%M:%S"
|
||||||
},
|
},
|
||||||
"splitter": {
|
"splitter": {
|
||||||
|
"name": "",
|
||||||
"paths": {
|
"paths": {
|
||||||
"INworkPath": "D:\\Test\\",
|
"INworkPath": "D:\\Emanuele\\Documenti\\workspace\\bananaSPLIT\\TestFiles\\",
|
||||||
"OUTworkPath": "D:\\Test\\Separati\\",
|
"OUTworkPath": "H:\\",
|
||||||
"OUTnameFormat": "TEST_{docnum}_{year:04d}{month:02d}{day:02d}_{title}.txt"
|
"OUTnameFormat": "TEST_{docnum}_{year:04d}{month:02d}{day:02d}_{title}.txt"
|
||||||
},
|
},
|
||||||
"docStruct": {
|
"docStruct": {
|
||||||
@@ -3,14 +3,32 @@ Created on 1 dic 2019
|
|||||||
|
|
||||||
@author: Emanuele Trabattoni
|
@author: Emanuele Trabattoni
|
||||||
'''
|
'''
|
||||||
|
import os
|
||||||
|
from glob import glob
|
||||||
|
from copy import deepcopy
|
||||||
from libsplit import bananaSPLITTER
|
from libsplit import bananaSPLITTER
|
||||||
from libconfload import bananaCONF
|
from libconfload import bananaCONF
|
||||||
from libfancylogger import fancyLogger
|
from libfancylogger import fancyLogger
|
||||||
|
|
||||||
|
if __name__ == "__main__":
|
||||||
|
print("CWD-> "+os.getcwd())
|
||||||
|
logger = fancyLogger(fileLog = False)
|
||||||
|
confl = bananaCONF(workdir=r"./libbananasplit", logger=logger)
|
||||||
|
confl.open()
|
||||||
|
|
||||||
logger = fancyLogger(fileLog = False)
|
confl.use("testEN.json")
|
||||||
confl = bananaCONF()
|
splconf = confl.getParams("splitter")
|
||||||
splitter = bananaSPLITTER()
|
splist = []
|
||||||
|
os.chdir(splconf["paths"]["INworkPath"])
|
||||||
|
for f in glob("*.txt"):
|
||||||
|
splconf["name"] = f
|
||||||
|
logger.info("-"*80)
|
||||||
|
splitter = bananaSPLITTER(fileParams=deepcopy(splconf), logger=logger)
|
||||||
|
splist.append(splitter)
|
||||||
|
splitter.start()
|
||||||
|
splitter.join()
|
||||||
|
|
||||||
|
logger.info("\n"+"="*50+"\n\tFINITO!!!\n"+"="*50)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user