1

Its weird because, when I run a normal python script on the server, it runs but when I run it via uWSGI, it cant import certain modules.

there is a bash script that starts uwsgi, and passes a path via --pythonpath option. Is this an additional path or all the paths have to be given here ?

If yes, how do I separate multiple paths given by this option.

4

1 回答 1

0

您可以指定多个 --pythonpath 选项,但应该尊重 PYTHONPATH(只要确保它由您的 init 脚本正确设置,您可以尝试从命令行设置它并在同一个 shell 会话中运行 uwsgi)

于 2012-12-26T10:49:21.787 回答