added example with %pythonbegin
This was requested in PR #7 but overlooked. Contains an example where one does: from __future__ import absolute_import using %pythonbegin directive.
This commit is contained in:
parent
ae7b34ce03
commit
0ed98c0606
1 changed files with 9 additions and 1 deletions
|
|
@ -5551,7 +5551,15 @@ from __future__ import absolute_import
|
|||
</div>
|
||||
|
||||
<p>at the very beginning of his proxy <tt>*.py</tt> file. In SWIG, it may be
|
||||
accomplished with <tt>%pythonbegin</tt> directive.</p>
|
||||
accomplished with <tt>%pythonbegin</tt> directive as follows:</p>
|
||||
|
||||
<div class="code">
|
||||
<pre>
|
||||
%pythonbegin %{
|
||||
from __future__ import absolute_import
|
||||
%}
|
||||
</pre>
|
||||
</div>
|
||||
|
||||
<H3><a name="Python_importfrominit"></a>34.11.4 Importing from __init__.py</H3>
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue