|
Anyone got a technique or tips for having a globally available script run from a venv without making a user source the activate script? It also needs to support tab completion (using the argcomplete module). I've got a script that needs some newer modules than the base OS provides, and I'm not able to mess with OS packages. I've done some googling and found some suggestions for making a wrapper script or setting up an alias setting with environment variables, but nothing really works all that well. The tab completion is the biggest hangup. I know I'm going to have to drop a script in profile.d to do some setup and that's fine, but it would be nice if it could work transparently without interfering with other python scripts that aren't in the venv.
|
# ¿ Feb 14, 2024 20:06 |
|
|
# ¿ May 11, 2024 20:12 |
|
Seventh Arrow posted:Follow-up question: what to use comments for, then? Disabling your debug print statements of course.
|
# ¿ Feb 26, 2024 17:26 |