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))
|
||||
self.registered_actions.add(action)
|
||||
|
||||
self._environment = environment or {}
|
||||
self._env = env or {}
|
||||
self.media_dirs = set(
|
||||
filter(
|
||||
lambda _: os.path.isdir(_),
|
||||
|
|
|
@ -113,8 +113,8 @@ class MediaMplayerPlugin(MediaPlugin):
|
|||
args.append(arg)
|
||||
|
||||
env = os.environ.copy()
|
||||
if self._environment:
|
||||
env.update(self._environment)
|
||||
if self._env:
|
||||
env.update(self._env)
|
||||
|
||||
self._mplayer = subprocess.Popen(args, env=env, shell=True,
|
||||
stdin=subprocess.PIPE,
|
||||
|
|
Loading…
Reference in a new issue