From 80b554312ae63c629e81ba433882f0d22fb519ed Mon Sep 17 00:00:00 2001 From: Kai Huuhko Date: Wed, 27 Nov 2013 16:05:00 +0200 Subject: [PATCH] Compatibility: Support the old kwarg "module_filename" in emotion. --- emotion/__init__.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/emotion/__init__.py b/emotion/__init__.py index 6781899..f09b4a8 100644 --- a/emotion/__init__.py +++ b/emotion/__init__.py @@ -1 +1,8 @@ +import efl.emotion from efl.emotion import * + +class Emotion(efl.emotion.Emotion): + def __init__(self, *args, **kwargs): + if "module_filename" in kwargs.keys(): + kwargs["module_name"] = kwargs.pop("module_filename") + efl.emotion.Emotion.__init__(self, *args, **kwargs)