aboutsummaryrefslogtreecommitdiffstats
path: root/efl/ethumb
diff options
context:
space:
mode:
authorKai Huuhko <kai.huuhko@gmail.com>2015-05-04 03:35:50 +0300
committerKai Huuhko <kai.huuhko@gmail.com>2015-05-04 03:36:54 +0300
commitbc0f40e54c4790bd106b904eb0842fc46b42ee15 (patch)
treef914786783bdffed98136a1b5ffdf64fa631418a /efl/ethumb
parentUpdated Changelog (diff)
downloadpython-efl-bc0f40e54c4790bd106b904eb0842fc46b42ee15.tar.gz
Add automated init/shutdown to rest of the modules
Diffstat (limited to 'efl/ethumb')
-rw-r--r--efl/ethumb/efl.ethumb.pyx3
1 files changed, 3 insertions, 0 deletions
diff --git a/efl/ethumb/efl.ethumb.pyx b/efl/ethumb/efl.ethumb.pyx
index 9f6f831..573f811 100644
--- a/efl/ethumb/efl.ethumb.pyx
+++ b/efl/ethumb/efl.ethumb.pyx
@@ -15,6 +15,8 @@
# You should have received a copy of the GNU Lesser General Public License
# along with this Python-EFL. If not, see <http://www.gnu.org/licenses/>.
+import atexit
+
def init():
return ethumb_init()
@@ -28,3 +30,4 @@ cdef class PyEthumb:
init()
+atexit.register(shutdown)