mirror of
				https://github.com/paperless-ngx/paperless-ngx.git
				synced 2025-10-30 03:56:23 -05:00 
			
		
		
		
	remove unnecessary env arg in Popen
This commit is contained in:
		| @@ -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
	 JensPfeifle
					JensPfeifle