Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(16)

Unified Diff: scripts/relocate-preamble.py.in

Issue 549740043: Cleanup python/ build rules.
Patch Set: rebase on whitespace changes Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « scripts/musicxml2ly.py ('k') | stepmake/stepmake/python-module-rules.make » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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')
"""
« no previous file with comments | « scripts/musicxml2ly.py ('k') | stepmake/stepmake/python-module-rules.make » ('j') | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b