#! python # install.py called on install and uninstall import sys, os, tempfile f = open(os.path.join(tempfile.gettempdir(), "uninstall-test.txt"), "w+") print >> f, sys.argv