From 50504c3fd8cbf67a4c34c521e0f15a63e2653e95 Mon Sep 17 00:00:00 2001 From: JensPfeifle Date: Wed, 30 Jan 2019 10:03:42 +0100 Subject: [PATCH] remove unnecessary env arg in Popen --- src/paperless_tesseract/parsers.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/paperless_tesseract/parsers.py b/src/paperless_tesseract/parsers.py index 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 gs run_convert(