开发者

Rsyslog + Virtualenv

开发者 https://www.devze.com 2023-04-11 05:05 出处:网络
I\'m using a shell execute action in rsyslog to a pyt开发者_开发百科hon script on a CentOS machine.How can I ensure that it runs in a specified virtualenv?Have you ever asked a question while research

I'm using a shell execute action in rsyslog to a pyt开发者_开发百科hon script on a CentOS machine. How can I ensure that it runs in a specified virtualenv?


Have you ever asked a question while researching something, then learned what you needed to do and then wished you hadn't asked the question?

All you need to do is modify your python path and add the path to the site-packages directory of the virtualenv you want to use.

0

精彩评论

暂无评论...
验证码 换一张
取 消