Created
June 11, 2018 07:51
-
-
Save Relrin/77e6c1c7d63d24c23a15cac4d07abb07 to your computer and use it in GitHub Desktop.
Running wxPython in virtualenv on Mac OS X
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Copy this file into /bin folder of your virtual environment and let this this be executable | |
PYVER=3.6 | |
PYTHON=/usr/local/bin/python$PYVER | |
ENV=`$PYTHON -c "import os; print(os.path.abspath(os.path.join(os.path.dirname(\"$0\"), '..')))"` | |
export PYTHONHOME=$ENV | |
exec $PYTHON "$@" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment