parte ma gli import continuano e non essere risolti
This commit is contained in:
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -1,70 +0,0 @@
|
||||
{
|
||||
"version": "v1.41",
|
||||
"paths": {
|
||||
"lastUsed": "defaults.json",
|
||||
"configurationPath": "./conf/",
|
||||
"INworkPath": "C://",
|
||||
"OUTworkPath": "C://",
|
||||
"fileList": [
|
||||
"bdlog.txt"
|
||||
]
|
||||
},
|
||||
"docStruct": {
|
||||
"fileVersNew": false,
|
||||
"language": "English",
|
||||
"languageIdx": 1,
|
||||
"docSep": "\\s*Copyright [(0-9)]+",
|
||||
"beginOfDocument": "\\s*Body",
|
||||
"endOfDocument": "\\s*End of Document",
|
||||
"dateFormat": "{month} {day:d}, {year:d}{}",
|
||||
"outPrefix": "",
|
||||
"outSuffix": "",
|
||||
"outExt": ".txt",
|
||||
"outDateType": "jpn",
|
||||
"outNameFormat": "",
|
||||
"outDate": true,
|
||||
"outTitle": true,
|
||||
"outNumber": true,
|
||||
"numberPos": 1,
|
||||
"datePos": 2,
|
||||
"titlePos": 3,
|
||||
"maxTitleLen": 16,
|
||||
"outNameSep": "-",
|
||||
"customSep": "=",
|
||||
"dateFormats": {
|
||||
"jpn": "{year:04d}{month:02d}{day:02d}",
|
||||
"it": "{day:02d}{month:02d}{year:04d}",
|
||||
"usa": "{month:02d}{year:04d}{day:02d}"
|
||||
}
|
||||
},
|
||||
"settings": {
|
||||
"uiLang": "en",
|
||||
"winW": 800,
|
||||
"winH": 700,
|
||||
"encoding": "windows-1252",
|
||||
"monthPosition": 0,
|
||||
"getNewsPaperName": true,
|
||||
"nameNotFoundStr": "ND",
|
||||
"includeTitle": true,
|
||||
"removeDuplicates": true,
|
||||
"showSkipped": false,
|
||||
"showRemovedDuplicates": false,
|
||||
"loadTXT": true,
|
||||
"loadDOCX": false,
|
||||
"removeOldFiles": true,
|
||||
"saveSeparateFiles": true,
|
||||
"saveBodyFile": true,
|
||||
"saveBodyNumber": true,
|
||||
"delLF": false,
|
||||
"delWordBreak": true,
|
||||
"delChars": [
|
||||
"'",
|
||||
"@",
|
||||
"#",
|
||||
"$",
|
||||
"%",
|
||||
"^",
|
||||
"&"
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -1,76 +0,0 @@
|
||||
{
|
||||
"Italiano": {
|
||||
"dateWords": [
|
||||
"Gennaio",
|
||||
"Febbraio",
|
||||
"Marzo",
|
||||
"Aprile",
|
||||
"Maggio",
|
||||
"Giugno",
|
||||
"Luglio",
|
||||
"Agosto",
|
||||
"Settembre",
|
||||
"Ottobre",
|
||||
"Novembre",
|
||||
"Dicembre"
|
||||
],
|
||||
"headWords": [
|
||||
"BYLINE:",
|
||||
"SECTION:",
|
||||
"LENGTH:",
|
||||
"DATELINE:",
|
||||
"HIGHLIGHT:",
|
||||
"Email:"
|
||||
],
|
||||
"tailWords": [
|
||||
"Newstex ID:",
|
||||
"NOTES:",
|
||||
"LANGUAGE:",
|
||||
"GRAPHIC:",
|
||||
"TYPE:",
|
||||
"URL:",
|
||||
"LOAD-DATE:",
|
||||
"PUBLICATION-TYPE:",
|
||||
"DOCUMENT-TYPE:",
|
||||
"CHARTS:",
|
||||
"JOURNAL-CODE:"
|
||||
]
|
||||
},
|
||||
"English": {
|
||||
"dateWords": [
|
||||
"January",
|
||||
"February",
|
||||
"March",
|
||||
"April",
|
||||
"May",
|
||||
"June",
|
||||
"July",
|
||||
"August",
|
||||
"September",
|
||||
"October",
|
||||
"November",
|
||||
"December"
|
||||
],
|
||||
"headWords": [
|
||||
"BYLINE:",
|
||||
"SECTION:",
|
||||
"LENGTH:",
|
||||
"DATELINE:",
|
||||
"HIGHLIGHT:",
|
||||
"Email:"
|
||||
],
|
||||
"tailWords": [
|
||||
"Newstex ID:",
|
||||
"NOTES:",
|
||||
"LANGUAGE:",
|
||||
"GRAPHIC:",
|
||||
"TYPE:",
|
||||
"URL:",
|
||||
"LOAD-DATE:",
|
||||
"PUBLICATION-TYPE:",
|
||||
"DOCUMENT-TYPE:",
|
||||
"CHARTS:",
|
||||
"JOURNAL-CODE:"
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -1,67 +0,0 @@
|
||||
{
|
||||
"version": "v1.3",
|
||||
"paths": {
|
||||
"lastUsed": "linux.json",
|
||||
"configurationPath": "./conf/",
|
||||
"INworkPath": "/home/",
|
||||
"OUTworkPath": "/home/",
|
||||
"fileList": []
|
||||
},
|
||||
"docStruct": {
|
||||
"fileVersNew": false,
|
||||
"language": "English",
|
||||
"languageIdx": 1,
|
||||
"docSep": "\\s*Copyright [(0-9)]+",
|
||||
"beginOfDocument": "\\s*Body",
|
||||
"endOfDocument": "\\s*End of Document",
|
||||
"dateFormat": "{month} {day:d}, {year:d}{}",
|
||||
"outPrefix": "",
|
||||
"outSuffix": "",
|
||||
"outExt": ".txt",
|
||||
"outDateType": "jpn",
|
||||
"outNameFormat": "",
|
||||
"outDate": true,
|
||||
"outTitle": true,
|
||||
"outNumber": true,
|
||||
"numberPos": 1,
|
||||
"datePos": 2,
|
||||
"titlePos": 3,
|
||||
"maxTitleLen": 16,
|
||||
"outNameSep": "-",
|
||||
"customSep": "=",
|
||||
"dateFormats": {
|
||||
"jpn": "{year:04d}{month:02d}{day:02d}",
|
||||
"it": "{day:02d}{month:02d}{year:04d}",
|
||||
"usa": "{month:02d}{year:04d}{day:02d}"
|
||||
}
|
||||
},
|
||||
"settings": {
|
||||
"winW": 800,
|
||||
"winH": 700,
|
||||
"encoding": "windows-1252",
|
||||
"monthPosition": 0,
|
||||
"getNewsPaperName": true,
|
||||
"nameNotFoundStr": "ND",
|
||||
"includeTitle": true,
|
||||
"removeDuplicates": true,
|
||||
"showSkipped": false,
|
||||
"showRemovedDuplicates": false,
|
||||
"loadTXT": true,
|
||||
"loadDOCX": false,
|
||||
"removeOldFiles": true,
|
||||
"saveSeparateFiles": true,
|
||||
"saveBodyFile": true,
|
||||
"saveBodyNumber": true,
|
||||
"delLF": false,
|
||||
"delWordBreak": true,
|
||||
"delChars": [
|
||||
"'",
|
||||
"@",
|
||||
"#",
|
||||
"$",
|
||||
"%",
|
||||
"^",
|
||||
"&"
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -1,5 +0,0 @@
|
||||
{
|
||||
"logFile": "D:\\Test\\bananaSPLIT.log",
|
||||
"logFormat": "%(asctime)s|%(levelname)-8s| %(message)-50s",
|
||||
"logTimeFormat": "%m-%d %H:%M:%S"
|
||||
}
|
||||
@@ -1,67 +0,0 @@
|
||||
{
|
||||
"version": "v1.3",
|
||||
"paths": {
|
||||
"lastUsed": "spiripacchio.json",
|
||||
"configurationPath": "./conf/",
|
||||
"INworkPath": "D:/Emanuele/Documenti/workspace/bananaSPLIT/TestFiles/FileBastardi",
|
||||
"OUTworkPath": "H:/",
|
||||
"fileList": []
|
||||
},
|
||||
"docStruct": {
|
||||
"fileVersNew": true,
|
||||
"language": "English",
|
||||
"languageIdx": 1,
|
||||
"docSep": "\\s*Copyright [(0-9)]+",
|
||||
"beginOfDocument": "\\s*Body",
|
||||
"endOfDocument": "\\s*End of Document",
|
||||
"dateFormat": "{month} {day:d}, {year:d}{}",
|
||||
"outPrefix": "",
|
||||
"outSuffix": "",
|
||||
"outExt": ".txt",
|
||||
"outDateType": "jpn",
|
||||
"outNameFormat": "",
|
||||
"outDate": true,
|
||||
"outTitle": true,
|
||||
"outNumber": true,
|
||||
"numberPos": 1,
|
||||
"datePos": 2,
|
||||
"titlePos": 3,
|
||||
"maxTitleLen": 16,
|
||||
"outNameSep": "-",
|
||||
"customSep": "=",
|
||||
"dateFormats": {
|
||||
"jpn": "{year:04d}{month:02d}{day:02d}",
|
||||
"it": "{day:02d}{month:02d}{year:04d}",
|
||||
"usa": "{month:02d}{year:04d}{day:02d}"
|
||||
}
|
||||
},
|
||||
"settings": {
|
||||
"winW": 800,
|
||||
"winH": 700,
|
||||
"encoding": "windows-1252",
|
||||
"monthPosition": 0,
|
||||
"getNewsPaperName": true,
|
||||
"nameNotFoundStr": "ND",
|
||||
"includeTitle": true,
|
||||
"removeDuplicates": true,
|
||||
"showSkipped": false,
|
||||
"showRemovedDuplicates": false,
|
||||
"loadTXT": true,
|
||||
"loadDOCX": false,
|
||||
"removeOldFiles": true,
|
||||
"saveSeparateFiles": true,
|
||||
"saveBodyFile": true,
|
||||
"saveBodyNumber": true,
|
||||
"delLF": false,
|
||||
"delWordBreak": true,
|
||||
"delChars": [
|
||||
"'",
|
||||
"@",
|
||||
"#",
|
||||
"$",
|
||||
"%",
|
||||
"^",
|
||||
"&"
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -6,20 +6,21 @@ TODO LIST
|
||||
1. rendere threaded lo splitter.. tentativo colore 100..
|
||||
|
||||
'''
|
||||
import sys, copy, json
|
||||
import sys, copy, json, os
|
||||
import PyQt5.QtWidgets
|
||||
import PyQt5.QtGui
|
||||
|
||||
from mainwindow import Ui_mainwin
|
||||
from selezout import Ui_selezout
|
||||
from titolow import Ui_titolo
|
||||
from avanzatetitolo3 import Ui_advtitolo3 as Ui_advtitolo
|
||||
from advopt import Ui_editconf
|
||||
from about import Ui_about
|
||||
|
||||
from libfancylogger import fancyLogger
|
||||
from libconfload import bananaCONF
|
||||
from libsplit import bananaSPLITTER
|
||||
from userInterface.compiledUI.mainwindow import Ui_mainwin
|
||||
from userInterface.compiledUI.selezout import Ui_selezout
|
||||
from userInterface.compiledUI.titolow import Ui_titolo
|
||||
from userInterface.compiledUI.avanzatetitolo3 import Ui_advtitolo3 as Ui_advtitolo
|
||||
from userInterface.compiledUI.advopt import Ui_editconf
|
||||
from userInterface.compiledUI.about import Ui_about
|
||||
|
||||
from libbananasplit.libfancylogger import fancyLogger
|
||||
from libbananasplit.libconfload import bananaCONF
|
||||
from libbananasplit.libsplit import bananaSPLITTER
|
||||
|
||||
from PyQt5.QtCore import QDir, QSize, QTranslator, pyqtSlot, pyqtSignal
|
||||
from PyQt5.QtWidgets import QMessageBox, QSizePolicy, QInputDialog
|
||||
@@ -581,6 +582,7 @@ if __name__ == '__main__':
|
||||
sys.excepthook = except_hook
|
||||
|
||||
try:
|
||||
print(os.getcwd())
|
||||
LOGGER = fancyLogger(filepath=r"./conf/loggerconf.json",fileLog=False)
|
||||
conf = bananaCONF(workdir=r"./conf", logger=LOGGER)
|
||||
conf.open()
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -53,7 +53,7 @@ class fancyLogger(QObject):
|
||||
except IOError as e:
|
||||
print("Impossibile caricare la configurazione del logger: [{}]".format(e))
|
||||
except Exception as ee:
|
||||
print(f"libFancylogger error: {e}")
|
||||
print(f"libFancylogger error: {ee}")
|
||||
pass
|
||||
|
||||
def debug(self, msg="Undefined Debug"):
|
||||
|
||||
Reference in New Issue
Block a user