2
0
mirror of https://github.com/boostorg/python.git synced 2026-01-24 06:02:14 +00:00
Files
python/extclass_demo.py
nobody ada1ce37e9 This commit was manufactured by cvs2svn to create tag
'Version_1_19_0'.

[SVN r8447]
2000-12-10 15:53:47 +00:00

24 lines
403 B
Python

# A stand-in for the real extension module. We're just using this one to
# simulate it while we have all the parts linked together into cpp.dll
# using "import*-safe" imports
import sys
_sys = sys
del sys
import os
_os = os
del os
_savecwd = _os.getcwd()
if len(_sys.argv) > 1:
_os.chdir(_sys.argv[1])
try:
from cpp import *
finally:
if len(_sys.argv) > 1:
_os.chdir(_savecwd)