Skip to content

Commit eb27c40

Browse files
committed
Fix path issue
1 parent 985f46a commit eb27c40

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

bin/Debug/netcoreapp3.1/pdfconverter.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ def setProjectStructure():
144144
# Cria as pastas armazenadas na temporária 'conversionPaths'
145145
#for eachPath in conversionPaths:
146146
# print(eachPath)
147-
# Path(pathFolderResultados + eachPath).mkdir(parents = True, exist_ok = True)
147+
# Path(currenPath + "\\resultados\\" + eachPath).mkdir(parents = True, exist_ok = True)
148148
for path in conversionPaths:
149149
Path(currentPath + path).mkdir(parents = True, exist_ok = True)
150150

@@ -216,7 +216,7 @@ def conversionStart(fileName, conversionMethod, tableDataFrame, tableListOfDataF
216216
# O segundo replace remove as que acontecem por conta do ponto e vírgula
217217
tableDataFrame = tableDataFrame.replace({r"\r": ""}, regex=True).replace({r";": ","}, regex=True)
218218

219-
txtFilePath = pathFolderResultados + "\\" + conversionMethod + "\\" + fileName + ".txt"
219+
txtFilePath = currentPath + "\\resultados\\" + conversionMethod + "\\" + fileName + ".txt"
220220

221221
# Converte para .txt no formato de um CSV
222222
tableDataFrame.to_csv(
@@ -263,7 +263,7 @@ def cleanTextFile(fileName, conversionMethod):
263263
global txtFilePath
264264

265265
# - CAMINHOS -
266-
txtFileCleanedPath = pathFolderResultados + "\\test\\" + conversionMethod + "\\" + fileName + ".txt"
266+
txtFileCleanedPath = currentPath + "\\resultados\\test\\" + conversionMethod + "\\" + fileName + ".txt"
267267

268268
# ---------------------------------------------------------------------- #
269269

0 commit comments

Comments
 (0)