fghaas / taiga-ansible

Ansible roles to deploy taiga.
GNU Affero General Public License v3.0
18 stars 14 forks source link

Make PYTHONPATH for circus universal #16

Open noonedeadpunk opened 3 years ago

noonedeadpunk commented 3 years ago

Currently PYTHONPATH is hardcoded and assumption about python version is made. While its recommended to use systemd, we still can fix circus by retrieving venv lib path. As a package location we pick gunicorn as smth we expect to be present anyway. As a result we will get {{ lib_path }}/gunicorn/init.py so we apply dirname twice to get just lib_path that can be re-used later on