aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrice Clement <monsieurp@gentoo.org>2020-07-15 22:13:06 +0200
committerPatrice Clement <monsieurp@gentoo.org>2020-07-15 22:14:22 +0200
commitbb8bb23579f75a34ccb7c9d963a6bae001ae40b8 (patch)
tree40793716761c8bea0e1d909b66244673c9a3deeb
parentfix - check if xml file is empty (diff)
downloadjavatoolkit-bb8bb23579f75a34ccb7c9d963a6bae001ae40b8.tar.gz
javatoolkit-bb8bb23579f75a34ccb7c9d963a6bae001ae40b8.tar.bz2
javatoolkit-bb8bb23579f75a34ccb7c9d963a6bae001ae40b8.zip
xml-rewrite-2.py: add back os.chdir() function call.0.6.3
Courtesy of Arfrever <arfrever@apache.org>. Closes: https://bugs.gentoo.org/698964 Signed-off-by: Patrice Clement <monsieurp@gentoo.org>
-rwxr-xr-xsrc/py/xml-rewrite-2.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/py/xml-rewrite-2.py b/src/py/xml-rewrite-2.py
index c56de1d..4035119 100755
--- a/src/py/xml-rewrite-2.py
+++ b/src/py/xml-rewrite-2.py
@@ -375,6 +375,8 @@ parameters will break the script."""
else:
rewriter.process(f)
+ os.chdir(cwd)
+
# Then write it back out to the file
with open(file, 'w') as f:
rewriter.write(f)