mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2026-10-07 08:37:13 +00:00
remove unnecessary env arg in Popen
This commit is contained in:
1 parent
0220199766
commit
50504c3fd8
1 file changed
+1
-2
@@ -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(
|
||||
|
||||
Reference in new issue
Block a user