File: namespace-package.diff

package info (click to toggle)
gamera 3.4.1%2Bsvn1423-4
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 22,292 kB
  • ctags: 25,015
  • sloc: xml: 122,324; ansic: 50,812; cpp: 50,489; python: 34,987; makefile: 119; sh: 101
file content (18 lines) | stat: -rw-r--r-- 582 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
Description: create namespace package ‘gamera.toolkit’
 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.
Author: Jakub Wilk <jwilk@debian.org>
Forwarded: not-needed
Last-Update: 2012-04-18

--- /dev/null
+++ 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