开发者

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

开发者 https://www.devze.com 2023-02-11 06:44 出处:网络
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 restart

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

精彩评论

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