A community-supported supercharged document management system: scan, index and archive all your documents
Python aiangulararchivingdjangodmsdocument-managementdocument-management-systemllmmachine-learningocroptical-character-recognitionpdf
remove unnecessary env arg in Popen
JensPfeifle50504c3fd8cb
diff --git a/src/paperless_tesseract/parsers.py b/src/paperless_tesseract/parsers.pyindex 5b468973d..01595754c 100644--- a/src/paperless_tesseract/parsers.py+++ b/src/paperless_tesseract/parsers.py@@ -51,10 +51,9 @@ class RasterisedDocumentParser(DocumentParser):# https://github.com/danielquinn/paperless/issues/447# call gs first- environment = os.environ.copy()cmd = ["gs", "-q", "-sDEVICE=pngalpha","-o", gs_out_path, self.document_path]- if not subprocess.Popen(cmd, env=environment).wait() == 0:+ if not subprocess.Popen(cmd).wait() == 0:raise ParseError("Thumbnail (gs) failed at {}".format(cmd))# then run convert on the output from gsrun_convert(