Skip to content

Commit 926ac4d

Browse files
committed
Apply changes for issue #242
1 parent 8c18b55 commit 926ac4d

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

pdfconverter.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -312,11 +312,7 @@ def Main():
312312
# Fecha o arquivo de saída do terminal
313313
setTerminalFileAsOpen(False)
314314

315-
316315
if (folderPath_import != "" and exportFolderDoesntExist is False):
317-
# [>] Define a estrutura inicial do projeto
318-
setProjectStructure()
319-
320316
# [>] Direciona o sistema para a pasta indicada
321317
os.chdir(folderPath_import)
322318
# [>] Filtra pelos PDFs na pasta onde foi indicada para o sis-
@@ -335,6 +331,11 @@ def Main():
335331
file = file_outputTxt
336332
)
337333
setTerminalFileAsOpen(False)
334+
# [>] Se é o primeiro arquivo ainda
335+
else:
336+
# [>] Define a estrutura inicial do projeto
337+
setProjectStructure()
338+
338339

339340
# [>] Remove extensão do arquivo (pegando apenas o nome) e
340341
# atribui para a temporária

0 commit comments

Comments
 (0)