commit:     bb8bb23579f75a34ccb7c9d963a6bae001ae40b8
Author:     Patrice Clement <monsieurp <AT> gentoo <DOT> org>
AuthorDate: Wed Jul 15 20:13:06 2020 +0000
Commit:     Patrice Clement <monsieurp <AT> gentoo <DOT> org>
CommitDate: Wed Jul 15 20:14:22 2020 +0000
URL:        https://gitweb.gentoo.org/proj/javatoolkit.git/commit/?id=bb8bb235

xml-rewrite-2.py: add back os.chdir() function call.

Courtesy of Arfrever <arfrever <AT> apache.org>.

Closes: https://bugs.gentoo.org/698964
Signed-off-by: Patrice Clement <monsieurp <AT> gentoo.org>

 src/py/xml-rewrite-2.py | 2 ++
 1 file changed, 2 insertions(+)

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)

Reply via email to