mirror of
https://github.com/boostorg/python.git
synced 2026-01-22 05:22:45 +00:00
24 lines
403 B
Python
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)
|
|
|