Closed misl6 closed 3 years ago
Running exec "${SCRIPT_PATH}/python" breaks our virtualenv.
exec "${SCRIPT_PATH}/python"
Output of import sys; print(sys.path) when using exec ${SCRIPT_PATH}/python:
import sys; print(sys.path)
exec ${SCRIPT_PATH}/python
['', '/Applications/Kivy.app/Contents/Frameworks/Python.framework/Versions/3.8/lib/python38.zip', '/Applications/Kivy.app/Contents/Frameworks/Python.framework/Versions/3.8/lib/python3.8', '/Applications/Kivy.app/Contents/Frameworks/Python.framework/Versions/3.8/lib/python3.8/lib-dynload', '/Applications/Kivy.app/Contents/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages']
Output of import sys; print(sys.path) when using exec python:
exec python
['', '/Applications/Kivy.app/Contents/Frameworks/Python.framework/Versions/3.8/lib/python38.zip', '/Applications/Kivy.app/Contents/Frameworks/Python.framework/Versions/3.8/lib/python3.8', '/Applications/Kivy.app/Contents/Frameworks/Python.framework/Versions/3.8/lib/python3.8/lib-dynload', '/Applications/Kivy.app/Contents/Resources/venv/lib/python3.8/site-packages']
fixes https://github.com/kivy/kivy/issues/7310 and https://github.com/kivy/kivy/issues/7411
Running
exec "${SCRIPT_PATH}/python"
breaks our virtualenv.Output of
import sys; print(sys.path)
when usingexec ${SCRIPT_PATH}/python
:Output of
import sys; print(sys.path)
when usingexec python
: