##// END OF EJS Templates
Made upgrade_dir executable on win32
vivainio -
Show More
@@ -1,7 +1,7 b''
1 1 # -*- coding: utf-8 -*-
2 2 """Magic functions for InteractiveShell.
3 3
4 $Id: Magic.py 1205 2006-03-12 18:31:19Z vivainio $"""
4 $Id: Magic.py 1209 2006-03-12 20:34:28Z vivainio $"""
5 5
6 6 #*****************************************************************************
7 7 # Copyright (C) 2001 Janko Hauser <jhauser@zscout.de> and
@@ -2934,7 +2934,7 b' Defaulting color scheme to \'NoColor\'"""'
2934 2934 """
2935 2935 ip = self.getapi()
2936 2936 ipinstallation = path(IPython.__file__).dirname()
2937 upgrade_script = ipinstallation / 'upgrade_dir.py'
2937 upgrade_script = sys.executable + " " + ipinstallation / 'upgrade_dir.py'
2938 2938 src_config = ipinstallation / 'UserConfig'
2939 2939 userdir = path(ip.options().ipythondir)
2940 2940 cmd = upgrade_script + " " + src_config + " " + userdir
@@ -1,3 +1,4 b''
1 #!/usr/bin/env python
1 2 """ A script/util to upgrade all files in a directory
2 3
3 4 This is rather conservative in its approach, only copying/overwriting
@@ -84,4 +85,4 b' import sys'
84 85 if __name__ == "__main__":
85 86 upgrade_dir(path(sys.argv[1]), path(sys.argv[2]))
86 87
87 No newline at end of file
88
General Comments 0
You need to be logged in to leave comments. Login now