From 36725f71368acd52c21f9fcbdaaa4d3400b799d8 Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Sat, 2 Feb 2019 15:54:44 +0100 Subject: [PATCH] typo --- platypush/plugins/media/__init__.py | 2 +- platypush/plugins/media/mplayer.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/platypush/plugins/media/__init__.py b/platypush/plugins/media/__init__.py index c59c200dc..0d869f705 100644 --- a/platypush/plugins/media/__init__.py +++ b/platypush/plugins/media/__init__.py @@ -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(_), diff --git a/platypush/plugins/media/mplayer.py b/platypush/plugins/media/mplayer.py index b780832e9..ce2faae4f 100644 --- a/platypush/plugins/media/mplayer.py +++ b/platypush/plugins/media/mplayer.py @@ -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,