问题:
I want to detect whether module has changed. 我想检测模块是否已更改。 Now, using inotify is simple, you just need to know the directory you want to get notifications from. 现在,使用inotify很简单,您只需要知道要从中获取通知的目录。
How do I retrieve a module's path in python? 如何在python中检索模块的路径?
解决方案:
参考一: https://stackoom.com/question/12SI/如何检索模块的路径参考二: https://oldbug.net/q/12SI/How-to-retrieve-a-module-s-path
来源:oschina
链接:https://my.oschina.net/u/4428122/blog/4341429