# HG changeset patch # User k0s # Date 1255624849 14400 # Node ID f58e8e81e16b1c6010733c647eeb9655b79921af # Parent f3ab51c798136059e4352a68c1857e6b9d2dfb37 adding program to install config diff -r f3ab51c79813 -r f58e8e81e16b python/install_config.py --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/python/install_config.py Thu Oct 15 12:40:49 2009 -0400 @@ -0,0 +1,18 @@ +#!/usr/bin/env python +""" +installs config to a user's home directory +this can be done with +curl http://k0s.org/hg/config/python/install-config.py | python +""" + +SRC='http://k0s.org/hg/config' +import os +os.chdir(os.environ['HOME']) + +# make the current directory a repository +import subprocess +subprocess.check_call(['hg', 'init']) +subprocess.check_call(['hg', 'pull', SRC]) +subprocess.check_call(['hg', 'update', '-C']) + +