Loading environment modules within a python script

I know this question’s kind of old but it’s still relevant enough that I was looking for the answer, so I’m posting what I found that works as well: At least in the 3.2.9+ sources, you can include the python “init” file to get a python function version of module: >>> exec(open(‘/usr/local/Modules/default/init/python.py’).read()) >>> module(‘list’) No … Read more