Skip to content

Instantly share code, notes, and snippets.


SgDylan Sg4Dylan

View GitHub Profile
eberle1080 /
Created Jun 7, 2011
Automatically reload python module / package on file change
#!/usr/bin/env python
# Author: Chris Eberle <>
# Watch for any changes in a module or package, and reload it automatically
import pyinotify
import imp
import os
class ModuleWatcher(pyinotify.ProcessEvent):
You can’t perform that action at this time.