restore LD_LIBRARY_PATH for PyInstaller builds (#5421)

This commit is contained in:
Mike Fährmann
2024-04-06 03:24:51 +02:00
parent 86a97d8e27
commit 9a8403917a
5 changed files with 36 additions and 10 deletions

View File

@@ -10,7 +10,6 @@
from .common import PostProcessor
from .. import util, formatter
import subprocess
import os
import re
@@ -80,14 +79,14 @@ class ExecPP(PostProcessor):
def _exec(self, args, shell):
self.log.debug("Running '%s'", args)
retcode = subprocess.Popen(args, shell=shell).wait()
retcode = util.Popen(args, shell=shell).wait()
if retcode:
self.log.warning("'%s' returned with non-zero exit status (%d)",
args, retcode)
def _exec_async(self, args, shell):
self.log.debug("Running '%s'", args)
subprocess.Popen(args, shell=shell)
util.Popen(args, shell=shell)
def _replace(self, match):
name = match.group(1)

View File

@@ -171,7 +171,7 @@ class UgoiraPP(PostProcessor):
def _exec(self, args):
self.log.debug(args)
out = None if self.output else subprocess.DEVNULL
retcode = subprocess.Popen(args, stdout=out, stderr=out).wait()
retcode = util.Popen(args, stdout=out, stderr=out).wait()
if retcode:
print()
self.log.error("Non-zero exit status when running %s (%s)",