typo
This commit is contained in:
parent
1713c0c940
commit
36725f7136
2 changed files with 3 additions and 3 deletions
|
@ -89,7 +89,7 @@ class MediaPlugin(Plugin):
|
||||||
setattr(self, action, getattr(plugin, action))
|
setattr(self, action, getattr(plugin, action))
|
||||||
self.registered_actions.add(action)
|
self.registered_actions.add(action)
|
||||||
|
|
||||||
self._environment = environment or {}
|
self._env = env or {}
|
||||||
self.media_dirs = set(
|
self.media_dirs = set(
|
||||||
filter(
|
filter(
|
||||||
lambda _: os.path.isdir(_),
|
lambda _: os.path.isdir(_),
|
||||||
|
|
|
@ -113,8 +113,8 @@ class MediaMplayerPlugin(MediaPlugin):
|
||||||
args.append(arg)
|
args.append(arg)
|
||||||
|
|
||||||
env = os.environ.copy()
|
env = os.environ.copy()
|
||||||
if self._environment:
|
if self._env:
|
||||||
env.update(self._environment)
|
env.update(self._env)
|
||||||
|
|
||||||
self._mplayer = subprocess.Popen(args, env=env, shell=True,
|
self._mplayer = subprocess.Popen(args, env=env, shell=True,
|
||||||
stdin=subprocess.PIPE,
|
stdin=subprocess.PIPE,
|
||||||
|
|
Loading…
Reference in a new issue