From 0f9c593bc099aed368ed1a11e2a546220336afd3 2006-03-12 20:34:28 From: vivainio Date: 2006-03-12 20:34:28 Subject: [PATCH] Made upgrade_dir executable on win32 --- diff --git a/IPython/Magic.py b/IPython/Magic.py index 91da7b5..cf736be 100644 --- a/IPython/Magic.py +++ b/IPython/Magic.py @@ -1,7 +1,7 @@ # -*- coding: utf-8 -*- """Magic functions for InteractiveShell. -$Id: Magic.py 1205 2006-03-12 18:31:19Z vivainio $""" +$Id: Magic.py 1209 2006-03-12 20:34:28Z vivainio $""" #***************************************************************************** # Copyright (C) 2001 Janko Hauser and @@ -2934,7 +2934,7 @@ Defaulting color scheme to 'NoColor'""" """ ip = self.getapi() ipinstallation = path(IPython.__file__).dirname() - upgrade_script = ipinstallation / 'upgrade_dir.py' + upgrade_script = sys.executable + " " + ipinstallation / 'upgrade_dir.py' src_config = ipinstallation / 'UserConfig' userdir = path(ip.options().ipythondir) cmd = upgrade_script + " " + src_config + " " + userdir diff --git a/IPython/upgrade_dir.py b/IPython/upgrade_dir.py index 4947590..47fb46f 100644 --- a/IPython/upgrade_dir.py +++ b/IPython/upgrade_dir.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python """ A script/util to upgrade all files in a directory This is rather conservative in its approach, only copying/overwriting @@ -84,4 +85,4 @@ import sys if __name__ == "__main__": upgrade_dir(path(sys.argv[1]), path(sys.argv[2])) - \ No newline at end of file +