summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xsolenv/bin/hrcex2
-rwxr-xr-xsolenv/bin/uiex2
2 files changed, 2 insertions, 2 deletions
diff --git a/solenv/bin/hrcex b/solenv/bin/hrcex
index 2a657290ed88..8e897ea1fca3 100755
--- a/solenv/bin/hrcex
+++ b/solenv/bin/hrcex
@@ -30,6 +30,6 @@ with open(ofile, "a") as output:
keyid = entry.msgctxt + '|' + entry.msgid
print >> output, '#. ' + polib.genKeyId(keyid)
location = entry.occurrences[0][0]
- location = os.path.basename(location)
+ location = os.path.relpath(location, os.environ['SRCDIR'])
entry.occurrences[0] = location, entry.occurrences[0][1]
print >> output, entry
diff --git a/solenv/bin/uiex b/solenv/bin/uiex
index 0f086a20c6c7..bade6149c382 100755
--- a/solenv/bin/uiex
+++ b/solenv/bin/uiex
@@ -30,6 +30,6 @@ with open(ofile, "a") as output:
keyid = entry.msgctxt + '|' + entry.msgid
print >> output, '#. ' + polib.genKeyId(keyid)
location = entry.occurrences[0][0]
- location = os.path.basename(location)
+ location = os.path.relpath(location, os.environ['SRCDIR'])
entry.occurrences[0] = location, entry.occurrences[0][1]
print >> output, entry