Fix python_moduleimport test for -builtn
This commit is contained in:
parent
2d8ce2a5d7
commit
f632ed34f7
1 changed files with 12 additions and 0 deletions
|
|
@ -1,3 +1,4 @@
|
||||||
|
#if !defined(SWIGPYTHON_BUILTIN)
|
||||||
%define MODULEIMPORT
|
%define MODULEIMPORT
|
||||||
"
|
"
|
||||||
#print 'Loading low-level module $module'
|
#print 'Loading low-level module $module'
|
||||||
|
|
@ -7,6 +8,17 @@ extra_import_variable = 'custom import of $module'
|
||||||
"
|
"
|
||||||
%enddef
|
%enddef
|
||||||
|
|
||||||
|
#else
|
||||||
|
%define MODULEIMPORT
|
||||||
|
"
|
||||||
|
#print 'Loading low-level module $module'
|
||||||
|
extra_import_variable = 'custom import of $module'
|
||||||
|
from $module import *
|
||||||
|
#print 'Module has loaded'
|
||||||
|
"
|
||||||
|
%enddef
|
||||||
|
#endif
|
||||||
|
|
||||||
%module(moduleimport=MODULEIMPORT) python_moduleimport
|
%module(moduleimport=MODULEIMPORT) python_moduleimport
|
||||||
|
|
||||||
%inline %{
|
%inline %{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue