diff options
author | Patrice Clement <monsieurp@gentoo.org> | 2020-07-15 22:13:06 +0200 |
---|---|---|
committer | Patrice Clement <monsieurp@gentoo.org> | 2020-07-15 22:14:22 +0200 |
commit | bb8bb23579f75a34ccb7c9d963a6bae001ae40b8 (patch) | |
tree | 40793716761c8bea0e1d909b66244673c9a3deeb /src | |
parent | fix - check if xml file is empty (diff) | |
download | javatoolkit-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>
Diffstat (limited to 'src')
-rwxr-xr-x | src/py/xml-rewrite-2.py | 2 |
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) |