libs/python/test/pyrun.py
import sys pythonpath = sys.argv[1] scriptfile = sys.argv[2] sys.argv = sys.argv[2:] sys.path.append(pythonpath) exec(compile(open(scriptfile).read(), scriptfile, 'exec'))
Boost
C++ Libraries
...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
import sys pythonpath = sys.argv[1] scriptfile = sys.argv[2] sys.argv = sys.argv[2:] sys.path.append(pythonpath) exec(compile(open(scriptfile).read(), scriptfile, 'exec'))