corretto path di uscita

This commit is contained in:
emanuele
2020-04-02 15:40:40 +02:00
parent 200565e4c7
commit e000b438ec
4 changed files with 25 additions and 17 deletions

View File

@@ -1,16 +1,19 @@
{
"version": "v1.2",
"paths": {
"lastUsed": "defaults.json",
"lastUsed": "linux.json",
"configurationPath": "./conf/",
"INworkPath": "C:/",
"OUTworkPath": "C:/",
"INworkPath": "/home/emanuele/Documents/LocalEclipseWorkspace/bananaSPLIT/TestFiles",
"OUTworkPath": "/home/emanuele/Desktop",
"fileList": [
"bdlog.txt"
"GUARDIAN 1993.txt",
"NYT 1990.txt",
"NYT 1994.txt",
"NYT 1997.txt"
]
},
"docStruct": {
"fileVersNew": true,
"fileVersNew": false,
"language": "English",
"languageIdx": 1,
"docSep": "\\s*Copyright [(0-9)]+",
@@ -38,7 +41,7 @@
}
},
"settings": {
"encoding": "ansi",
"encoding": "windows-1252",
"monthPosition": 0,
"getNewsPaperName": true,
"nameNotFoundStr": "ND",

View File

@@ -1,14 +1,19 @@
{
"version": "v1.2",
"paths": {
"lastUsed": "linux",
"lastUsed": "linux.json",
"configurationPath": "./conf/",
"INworkPath": "/home/emanuele/Documents",
"OUTworkPath": "/home/emanuele/Documents",
"fileList": []
"INworkPath": "/home/emanuele/Documents/LocalEclipseWorkspace/bananaSPLIT/TestFiles/",
"OUTworkPath": "/home/emanuele/Desktop/",
"fileList": [
"GUARDIAN 1993.txt",
"NYT 1990.txt",
"NYT 1994.txt",
"NYT 1997.txt"
]
},
"docStruct": {
"fileVersNew": true,
"fileVersNew": false,
"language": "English",
"languageIdx": 1,
"docSep": "\\s*Copyright [(0-9)]+",
@@ -36,7 +41,7 @@
}
},
"settings": {
"encoding": "ansi",
"encoding": "windows-1252",
"monthPosition": 0,
"getNewsPaperName": true,
"nameNotFoundStr": "ND",

View File

@@ -161,18 +161,18 @@ class bananaMain(PyQt5.QtWidgets.QMainWindow):
def selezSorg(self):
rv = PyQt5.QtWidgets.QFileDialog.getExistingDirectory(self,"Seleziona Cartella Sorgente",self.conf.getParam('paths','INworkPath'))
if rv is not "":
self.conf.setParam(keys=('paths','INworkPath',), val=rv)
self.conf.setParam(keys=('paths','INworkPath',), val=rv+"/")
self.ui.lbl_sorg.setText(rv)
self.logger.info("Selezionata Cartella Sorgente: {}".format(rv))
self.logger.info("Selezionata Cartella Sorgente: {}".format(rv+"/"))
self.fillFileList()
pass
def selezDest(self):
rv = PyQt5.QtWidgets.QFileDialog.getExistingDirectory(self,"Seleziona Cartella Destinazione",self.conf.getParam('paths','OUTworkPath'))
if rv is not "":
self.conf.setParam(keys=('paths','OUTworkPath',), val=rv)
self.conf.setParam(keys=('paths','OUTworkPath',), val=rv+"/")
self.ui.lbl_dest.setText(rv)
self.logger.info("Selezionata Cartella Destinazione: {}".format(rv))
self.logger.info("Selezionata Cartella Destinazione: {}".format(rv+"/"))
pass
def openFileDialog(self, name, path):

View File

@@ -72,7 +72,7 @@ class fancyLogger(QObject):
print(self.LYELLOW, end='')
self.LOGGER.warning(msg)
print(self.RST, end='')
self.sendLog.emit(f"<FONT COLOR='##fc9403'>WARNING | {msg} </br>")
self.sendLog.emit(f"<FONT COLOR='#fc9403'>WARNING | {msg} </br>")
pass
def error(self, msg="Undefined Error"):