3 ms·
One issue I've run into with BitBar is that you would need to install dependencies systemwide which I don't want to. A solution I found was to create a virtuale
by aequitas 6y ago
One issue I've run into with BitBar is that you would need to install dependencies systemwide which I don't want to. A solution I found was to create a virtualenv for a specific script (or BitBar as a whole) and just put the path of the Python executable in the hashbang of the BitBar script, ie:
#!/path/to/the/virtualenv/bin/python
There is no need to 'activate' the virtualenv or use some kind of wrapper (unless your script depends on PATH for subcommands to be executed from the virtualenv as well).