Shakeeb Alireza added the comment:
Thanks, Mathias. This is all about improving python's 'relocatability'.
Just to expand on my prior point: the scenario we are talking about is where
one embeds python in a host application's plugin system rather than in the host
application itself
Shakeeb Alireza added the comment:
Thanks, Victor. I can imagine getpath.py will be more hackable (even if it is
frozen).
Still, it replicates the old algorithm:
# Before any searches are done, the location of the executable is
# determined. If Py_SetPath() was called, or if we
Shakeeb Alireza added the comment:
I have exactly the same need and use-case as Mathias in my project which
includes a requirement to embed python3 in a relocatable folder structure w
which serves as an application package (https://github.com/shakfu/py-js).
This can be done using
Shakeeb Alireza added the comment:
I have struggled with this exact issue in my py-js project
(https://github.com/shakfu/py-js) which embeds a python3 interpreter in a
max/msp plugin or in a relocatable folder (package) structure. For the latter
case, Greg's solution, which is based
Shakeeb Alireza added the comment:
In my project (https://github.com/shakfu/py-js), which provides an embedded
python3 interpreter to Max/MSP in the form of an 'external' plugin, I have
faced similar issues of being unable to reload extension modules, namely numpy,
without reliably crashing