Index: scripts/relocate-preamble.py.in |
diff --git a/python/relocate-preamble.py.in b/scripts/relocate-preamble.py.in |
similarity index 87% |
rename from python/relocate-preamble.py.in |
rename to scripts/relocate-preamble.py.in |
index 8896e8ca0f1187a7f67893862888c334daaa91a5..dfa9e69adb1aa075fe0ffaffa468c51a711d2892 100644 |
--- a/python/relocate-preamble.py.in |
+++ b/scripts/relocate-preamble.py.in |
@@ -22,5 +22,8 @@ for p in ['share', 'lib']: |
# those scripts. Assume to be in such a situation if the path to the |
# script ends with 'scripts/out'. |
if bindir.endswith (r'/scripts/out'): |
+ # only works for in-tree builds |
+ sys.path.insert (0, bindir + r'/../../python') |
+ # build in separate dir, but incorrect. |
sys.path.insert (0, bindir + r'/../../python/out') |
""" |