Skip to content

Instantly share code, notes, and snippets.

View paul-hammant's full-sized avatar

Paul Hammant paul-hammant

View GitHub Profile
## For use with https://addons.mozilla.org/en-US/firefox/addon/212/
## If named to match title of page, this extracts zipped contents for source control usage
## inspired by {{{ http://code.activestate.com/recipes/465649/ (r3)
##
import os, zipfile, sys, subprocess, platform
from cStringIO import StringIO
def extract( filename, dir ):
zfn = filename + '.maff'
print 'Processing: ' + zfn