Skip to content

Instantly share code, notes, and snippets.

@Relrin
Created June 11, 2018 07:51
Show Gist options
  • Save Relrin/77e6c1c7d63d24c23a15cac4d07abb07 to your computer and use it in GitHub Desktop.
Save Relrin/77e6c1c7d63d24c23a15cac4d07abb07 to your computer and use it in GitHub Desktop.
Running wxPython in virtualenv on Mac OS X
#!/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