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.
How do I retrieve
import os path = os.path.abspath(__file__) dir_path = os.path.dirname(path)