# HG changeset patch
# User Jeff Hammel <k0scist@gmail.com>
# Date 1269616032 25200
# Node ID eda848575afb8ef20cf0fce1228dfaf7459b8de5
# Parent  08f45070c13695b315cc0c1c81fb1cd622bc861e
chdir to the directory before running python setup.py develop as this seems to be necessary

diff -r 08f45070c136 -r eda848575afb python/install_config.py
--- a/python/install_config.py	Wed Mar 24 20:40:22 2010 -0700
+++ b/python/install_config.py	Fri Mar 26 08:07:12 2010 -0700
@@ -38,12 +38,17 @@
 
 def install_develop(package):
     src = 'http://k0s.org/hg/%s' % package
+    directory = '%s/src/%s' % (package, package)
     commands = [ ['virtualenv/virtualenv.py', package],
-                 ['mkdir', '%s/src' % package],
-                 ['hg', 'clone', src, '%s/src/%s' % (package, package)],
-                 ['%s/bin/python' % package, '%s/src/%s/setup.py' % (package, package), 'develop'] ]
+                 ['mkdir', directory ],
+                 ['hg', 'clone', src, '%s/src/%s' % (package, package)] ]
     execute(*commands)
-
+    old_directory = os.getcwd()
+    os.chdir(directory)
+    command = ['../../bin/python',  'setup.py', 'develop']
+    execute(command)
+    os.chdir(old_directory)
+    
 # install some python
 install_develop('smartopen')