| 1 | import sys |
| 2 | import os.path |
| 3 | sys.path.insert(0, os.path.join(os.path.dirname(os.path.abspath(__file__)), |
| 4 | '..', '..', 'build', 'examples', 'boost_shared_ptr')) |
| 5 | |
| 6 | import bsp |
| 7 | |
| 8 | |
| 9 | f = bsp.Foo("hello123") |
| 10 | bsp.function_that_takes_foo(f) |
| 11 | f1 = bsp.function_that_returns_foo() |
| 12 | print f1.get_datum() |
| 13 | f.set_datum("xxxx") |
| 14 | print f1.get_datum() |
| 15 |