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
eberle1080 / module_watcher.py
Created Jun 7, 2011
Automatically reload python module / package on file change
View module_watcher.py
#!/usr/bin/env python
# Author: Chris Eberle <eberle1080@gmail.com>
# 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.