I have an application that provides a nice Python API (Python3, FWIW). Using its GUI I can trigger Python scripts or use its Python shell. In the scripts I have it run, I can import the Foo module the vendor provides. What I'd like to do is import Foo from a stand-alone Python session. Is this possible? (Or does it depend on how it's implemented?)
I looked at sys.path in the interactive shell they provide but don't see anything relevant.
When the application spawns a Python interpreter, is it somehow injecting a module into it that can't be accessed from a stand-alone Python interpreter or is there a way to tell my Python interpreter to find Foo inside the application's executable?
For what it's worth:
>>> Foo
<module 'Foo' (built-in)>
>>>