kuuko pushed a commit to branch master.

commit 49d1d1950aa06d4afc1313ddde3afb02cb963d0e
Author: Kai Huuhko <[email protected]>
Date:   Sun Mar 31 15:07:00 2013 +0000

    Move Eo init to beginning of the file so that the initialization is run
    before anything else that's in the module init code path.
---
 efl/eo/efl.eo.pyx | 32 ++++++++++++++++----------------
 1 file changed, 16 insertions(+), 16 deletions(-)

diff --git a/efl/eo/efl.eo.pyx b/efl/eo/efl.eo.pyx
index dace687..cf081f5 100644
--- a/efl/eo/efl.eo.pyx
+++ b/efl/eo/efl.eo.pyx
@@ -33,12 +33,27 @@ from efl.c_eo cimport EO_EV_DEL
 import traceback
 
 ######################################################################
+#
+# TODO: Automate these
+#
+# Call eo_init and put eo_shutdown to atexit, and don't expose in our API.
+#
+# Do the same in other packages as well, making sure the packages main
+# module is always imported.
+#
+def init():
+    return eo_init()
+
+def shutdown():
+    return eo_shutdown()
+
+init()
+
 
 cdef int PY_REFCOUNT(object o):
     cdef PyObject *obj = <PyObject *>o
     return obj.ob_refcnt
 
-
 cdef unicode _touni(char* s):
     """
 
@@ -371,18 +386,3 @@ cdef class Eo(object):
         "Check if the object has been deleted thus leaving the object shallow"
         return bool(self.obj == NULL)
 
-#
-# TODO: Automate these
-#
-# Call eo_init and put eo_shutdown to atexit, and don't expose in our API.
-#
-# Do the same in other packages as well, making sure the packages main
-# module is always imported.
-#
-def init():
-    return eo_init()
-
-def shutdown():
-    return eo_shutdown()
-
-init()

-- 

------------------------------------------------------------------------------
Own the Future-Intel(R) Level Up Game Demo Contest 2013
Rise to greatness in Intel's independent game demo contest. Compete 
for recognition, cash, and the chance to get your game on Steam. 
$5K grand prize plus 10 genre and skill prizes. Submit your demo 
by 6/6/13. http://altfarm.mediaplex.com/ad/ck/12124-176961-30367-2

Reply via email to