]> git.proxmox.com Git - mirror_edk2.git/blobdiff - AppPkg/Applications/Python/Python-2.7.2/Tools/scripts/fixps.py
edk2: Remove AppPkg, StdLib, StdLibPrivateInternalFiles
[mirror_edk2.git] / AppPkg / Applications / Python / Python-2.7.2 / Tools / scripts / fixps.py
diff --git a/AppPkg/Applications/Python/Python-2.7.2/Tools/scripts/fixps.py b/AppPkg/Applications/Python/Python-2.7.2/Tools/scripts/fixps.py
deleted file mode 100644 (file)
index 87c3a0f..0000000
+++ /dev/null
@@ -1,33 +0,0 @@
-#!/usr/bin/env python\r
-\r
-# Fix Python script(s) to reference the interpreter via /usr/bin/env python.\r
-# Warning: this overwrites the file without making a backup.\r
-\r
-import sys\r
-import re\r
-\r
-\r
-def main():\r
-    for filename in sys.argv[1:]:\r
-        try:\r
-            f = open(filename, 'r')\r
-        except IOError, msg:\r
-            print filename, ': can\'t open :', msg\r
-            continue\r
-        line = f.readline()\r
-        if not re.match('^#! */usr/local/bin/python', line):\r
-            print filename, ': not a /usr/local/bin/python script'\r
-            f.close()\r
-            continue\r
-        rest = f.read()\r
-        f.close()\r
-        line = re.sub('/usr/local/bin/python',\r
-                      '/usr/bin/env python', line)\r
-        print filename, ':', repr(line)\r
-        f = open(filename, "w")\r
-        f.write(line)\r
-        f.write(rest)\r
-        f.close()\r
-\r
-if __name__ == '__main__':\r
-    main()\r