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,