summarylogtreecommitdiffstats
path: root/activestate.py.patch
diff options
context:
space:
mode:
authorNathan Rijksen2017-09-26 11:50:16 -0400
committerNathan Rijksen2017-09-26 11:50:16 -0400
commit4ae16878fdbc8500624175f3d760a53b0455e955 (patch)
tree9e095b20bbc7051d58c4584102def607fdd94875 /activestate.py.patch
downloadaur-4ae16878fdbc8500624175f3d760a53b0455e955.tar.gz
Initial commit
Diffstat (limited to 'activestate.py.patch')
-rw-r--r--activestate.py.patch34
1 files changed, 34 insertions, 0 deletions
diff --git a/activestate.py.patch b/activestate.py.patch
new file mode 100644
index 000000000000..af0ebebfcf5b
--- /dev/null
+++ b/activestate.py.patch
@@ -0,0 +1,34 @@
+--- Komodo-IDE-__VERSION__-linux-__ARCH__/INSTALLDIR/lib/python/lib/python2.7/activestate.py2013-08-15 00:21:03.000000000 +0200
++++ src/Komodo-IDE-__VERSION__-linux-__ARCH__/INSTALLDIR/lib/python/lib/python2.7/activestate.py2013-11-18 18:27:07.902501347 +0100
+@@ -182,7 +182,7 @@
+ os .chmod(path, perm) # restore permissions
+
+
+-def relocate_python(install_prefix, verbose=False):
++def relocate_python(install_prefix, dest_prefix=None, verbose=False):
+ """Relocate this Python installation.
+
+ "Relocation" involves updating hardcoded shebang lines in Python scripts
+@@ -210,16 +210,19 @@
+ % (install_prefix, len(install_prefix),
+ shortest_original_prefix_length))
+
+- log("relocate this Python to '%s'" % install_prefix)
++ if dest_prefix is None:
++ dest_prefix = install_prefix
++
++ print("relocate this Python to '%s'" % dest_prefix)
+ for prefix in prefixes:
+- if prefix == install_prefix:
++ if prefix == dest_prefix:
+ continue
+ for dirpath, dirnames, filenames in os.walk(install_prefix):
+ for filename in filenames:
+ if splitext(filename)[1] in (".pyo", ".pyc"):
+ continue
+ _relocate_path(join(dirpath, filename),
+- prefix, install_prefix, log)
++ prefix, dest_prefix, log)
+
+
+ #---- mainline \ No newline at end of file