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.
精彩评论