mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 14:32:22 -04:00
make sure we don't use inherited ld_library_path when calling mplayer
This commit is contained in:
parent
e9104de197
commit
7f7b8fc52f
1 changed files with 2 additions and 3 deletions
|
@ -30,6 +30,8 @@ def hasSound(text):
|
|||
def _packagedCmd(cmd):
|
||||
cmd = cmd[:]
|
||||
env = os.environ.copy()
|
||||
if "LD_LIBRARY_PATH" in env:
|
||||
del env['LD_LIBRARY_PATH']
|
||||
if isMac:
|
||||
dir = os.path.dirname(os.path.abspath(__file__))
|
||||
exeDir = os.path.abspath(dir + "/../../Resources/audio")
|
||||
|
@ -41,9 +43,6 @@ def _packagedCmd(cmd):
|
|||
if not os.path.exists(path):
|
||||
return cmd, env
|
||||
cmd[0] = path
|
||||
# need to set lib path for linux
|
||||
if isLin:
|
||||
env["LD_LIBRARY_PATH"] = exeDir
|
||||
return cmd, env
|
||||
|
||||
##########################################################################
|
||||
|
|
Loading…
Reference in a new issue