kuuko pushed a commit to branch master.

http://git.enlightenment.org/bindings/python/python-efl.git/commit/?id=80b554312ae63c629e81ba433882f0d22fb519ed

commit 80b554312ae63c629e81ba433882f0d22fb519ed
Author: Kai Huuhko <[email protected]>
Date:   Wed Nov 27 16:05:00 2013 +0200

    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)

-- 


Reply via email to