3 ms·
You can execute the python binary inside the venv's bin/ folder directly. But you still need the full path I guess
by teraku 6y ago
You can execute the python binary inside the venv's bin/ folder directly. But you still need the full path I guess
- pfranz 6y agoYou could add that bin/ to your PATH, but you'd also need something else to load the venv before executing it. You could write a generic wrapper that would load the env and call the Python binary and put that in a more generic bin/, but that's the kind of thing this proposal seems to make irrelevant. Another issue with wrappers is how quickly it executes. It's not a big deal for most executions, but for --help or building up a command pipeline it's really annoying to wait a second or two on each execution. That slow startup time also shows up when you start integrating it into automated processes.