fix pdf workdir (#830)
This commit is contained in:
1 parent
2e39a8c227
commit
11a395e983
1 file changed
+1
@@ -645,6 +645,7 @@ def getWorkFolder(afile):
|
|||||||
if afile.lower().endswith('.pdf'):
|
if afile.lower().endswith('.pdf'):
|
||||||
pdf = pdfjpgextract.PdfJpgExtract(afile)
|
pdf = pdfjpgextract.PdfJpgExtract(afile)
|
||||||
path, njpg = pdf.extract()
|
path, njpg = pdf.extract()
|
||||||
|
workdir = path
|
||||||
sanitizePermissions(path)
|
sanitizePermissions(path)
|
||||||
if njpg == 0:
|
if njpg == 0:
|
||||||
rmtree(path, True)
|
rmtree(path, True)
|
||||||
|
|||||||
Reference in new issue
Block a user