sashahart / vex

Run a command in the named virtualenv.
MIT License
372 stars 26 forks source link

--list runtime exception if virtualenv directory is missing #34

Closed ijanos closed 9 years ago

ijanos commented 9 years ago

After a fresh install of vex I tried the vex --list but it threw FileNotFoundError: [Errno 2] No such file or directory: '/home/USER/.virtualenvs'

This is correct of course, because there is no such directory but maybe vex should catch this and show an appropriate message.

sashahart commented 9 years ago

Thanks for the catch. The message can be on stderr to avoid confusing tools which are splitting --list output on stdout. Are you capable of running and giving feedback on https://github.com/sashahart/vex/pull/36?

ijanos commented 9 years ago

Hi! Just tested it, works perfectly.

sashahart commented 9 years ago

Thank you for doing that, although I always do it myself I like to have independent eyeballs.

I've now added some tests and merged to master. I may wait a short while to do a new public version on PyPI.