Skip to content
This repository was archived by the owner on Nov 5, 2020. It is now read-only.

Conversation

@yb66
Copy link

@yb66 yb66 commented Apr 13, 2019

Hi,

Really love this, so simple and it works well. Made 2 small changes, nothing much but you may want to include them. Exporting $PYTHONS should allow adding non-standard locations a là chruby, that may come in helpful to others.

Regards,
iain

iain barnett added 4 commits April 13, 2019 13:06
- Tried to make the functions match the formatting of chruby's
  as much as possible to make it easy to use idea's from it.
- Read the /opt/pythons and ~/.pythons into PYTHONS automatically.
- Removed `exec` option, again to match chruby and because I wasn't
  using it.
- I'm going to be opinionated assume that `python` exists in python3 installs
  because someone has done the `ln -s python3.x python` like a sensible person.
- Expose a PYTHON_VERSION env var that includes a fuller version of the python
  version (taken from `python --version`).
@yb66
Copy link
Author

yb66 commented Apr 15, 2019

A little bit of that was not so great so I went through chruby's code and tried to bring over some more of it and improve what I'd done.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant