pyship
pyship copied to clipboard
add embedded Python's parent directory to PATH
Some applications assume they will be installed in the same directory as python.exe , for example the AWS CLI application. For the embedded Python, the aws CLI application is installed in the Scripts directory but the python.exe is in the parent directory.
A possible solution is for the launcher to add the parent app directory (where python.exe is) to the beginning of the PATH environmental variable prior to calling the target application. Then if the target application runs a program (such as the AWS CLI app), the python.exe should be the one used by that program.