[Python-modules-commits] [gamera] 06/17: namespace-package

Daniel Stender stender at moszumanska.debian.org
Tue Apr 26 18:43:44 UTC 2016


This is an automated email from the git hooks/post-receive script.

stender pushed a commit to branch master
in repository gamera.

commit 0301b221ff84aa1787618d3ec3225182897659e4
Author: Jakub Wilk <jwilk at debian.org>
Date:   Sat Oct 17 18:51:25 2015 +0200

    namespace-package
    
       Create namespace package ‘gamera.toolkit’. This allows
       python-gamera.toolkit.* packages, both those using dh_python2
       and those using python-support, to be co-importable.
       Forwarded: not-needed
---
 gamera/toolkits/__init__.py | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/gamera/toolkits/__init__.py b/gamera/toolkits/__init__.py
index e69de29..d01835d 100644
--- a/gamera/toolkits/__init__.py
+++ b/gamera/toolkits/__init__.py
@@ -0,0 +1,7 @@
+import distutils.sysconfig
+import pkgutil
+__path__ = (
+    pkgutil.extend_path(__path__, __name__) +
+    [distutils.sysconfig.get_python_lib() + '/gamera/toolkits']
+)
+del distutils, pkgutil

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/gamera.git



More information about the Python-modules-commits mailing list