Compatibility: Support the old kwarg "module_filename" in emotion.

This commit is contained in:
Kai Huuhko 2013-11-27 16:05:00 +02:00
parent 4e6d58301d
commit 80b554312a
1 changed files with 7 additions and 0 deletions

View File

@ -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)