Add example to test the Python module being renamed to __init__.py

This examples tests the SWIG generated module being placed into a directory and
then renamed __init__.py to convert the module into a package. This ability
stopped working in swig-3.0.9. However, only Python 2.7 or 3.3 and later work. If
Python 3.2 support is needed, use moduleimport in %module to customise the import
code.

Issue #1282
This commit is contained in:
William S Fulton 2018-12-08 22:31:26 +00:00
commit 51dadaeacd
8 changed files with 101 additions and 0 deletions

View file

@ -8,6 +8,7 @@ import_packages_subdirs = \
from_init1 \
from_init2 \
from_init3 \
module_is_init \
relativeimport1 \
relativeimport2 \
relativeimport3 \