Commit graph

3 commits

Author SHA1 Message Date
Vadim Zeitlin
07ebbe84b8 Fix pep8 E265 error in testcase 2016-12-11 22:20:44 +00:00
William S Fulton
f632ed34f7 Fix python_moduleimport test for -builtn 2016-12-03 16:07:59 +00:00
William S Fulton
2a42031b08 Custom Python module importing code
Add optional moduleimport attribute to %module so that the
default module import code can be overridden. See the
"Searching for the wrapper module" documentation in Python.html.
Example:

  %module(moduleimport="import _foo") foo

$module also expands to the low-level C/C++ module name, so
the following is the same as above

  %module(moduleimport="import $module") foo

Issue https://github.com/swig/swig/issues/769
2016-12-01 18:59:33 +00:00