Skip to content

Instantly share code, notes, and snippets.

SgDylan Sg4Dylan

Block or report user

Report or block Sg4Dylan

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
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.