sashahart / vex

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

Vex fails on Windows when virtualenv not installed system-wide #64

Open sukiletxe opened 3 years ago

sukiletxe commented 3 years ago

I have the following setuversion p:

When Vex tries to find virtualenv, it uses sys.executable, and appends scripts\virtualenv to its dirname, which results in an error.

Using sys.argv[0] in place of sys.executable and removing the line which says "scripts" solves my problem, but I'm not sure if it's a general enough solution or if anything will break (I think it is, since I cannot run vex indirectly with python -m vex).