mirror of
https://github.com/pybind/pybind11.git
synced 2024-11-25 06:35:12 +00:00
28 lines
339 B
Python
28 lines
339 B
Python
#!/usr/bin/env python3
|
|
import sys
|
|
sys.path.append('.')
|
|
|
|
import example
|
|
|
|
print(example.__name__)
|
|
print(example.submodule.__name__)
|
|
|
|
from example.submodule import *
|
|
|
|
submodule_func()
|
|
|
|
b = B()
|
|
print(b.get_a1())
|
|
print(b.a1)
|
|
print(b.get_a2())
|
|
print(b.a2)
|
|
|
|
b.a1 = A(42)
|
|
b.a2 = A(43)
|
|
|
|
print(b.get_a1())
|
|
print(b.a1)
|
|
print(b.get_a2())
|
|
print(b.a2)
|
|
|