2
0
mirror of https://github.com/boostorg/python.git synced 2026-01-22 05:22:45 +00:00
Files
python/extclass_demo.py
Ullrich Köthe 12a881ead5 This commit was generated by cvs2svn to compensate for changes in r315,
which included commits to RCS files with non-trunk default branches.


[SVN r7932]
2000-10-13 13:49:34 +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)