开发者

How to get the App Engine SDK to track file changes in directories added via sys.path?

I am currently experiencing an issue with the Google AppEngine SDK where directories added u开发者_如何学JAVAsing sys.path don't have their changes recognized by the SDK. Requiring the SDK be restarted in order for the modified files to have any effect.

This is particularly a problem with frameworks that make use of sys.path, such as tipfy.


I've been dealing with file monitoring for some time and wrote a library to do this. Hence a shameless plug:

Write a wrapper script around the dev_appserver module entry point to restart it using a library like: https://github.com/gorakhargosh/watchdog

or the nosy script at https://github.com/gorakhargosh/watchdog/blob/master/scripts/nosy.py

HTH.

Cheers, Gora Khargosh.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜