Skip to content

Instantly share code, notes, and snippets.

View ohaz's full-sized avatar

Richard Baumann ohaz

View GitHub Profile
FROM ubuntu
# usage
# create the image:
# docker build -t buildozer .
#
# use the built image:
# docker run --rm -v /path/to/project:/home/build/build -w /home/build/build buildozer
#
# you can use $PWD as /path/to/project if you are in the project dir
@eberle1080
eberle1080 / module_watcher.py
Created June 7, 2011 20:50
Automatically reload python module / package on file change
#!/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):
"""