Friday, 13 September 2013

Import into python interpreter main namespace from an import

Import into python interpreter main namespace from an import

How can I run a bunch of imports and path appends from the interpreter
with one command/import? If I import another module that runs the commands
for me the imports are not available in main namespace. Similar to running
a bash script that modifies/adds commands and variables to the current
session.
ex.
import os, ...
sys.path.append(...)

No comments:

Post a Comment