aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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)