diff options
Diffstat (limited to 'src/py/xml-rewrite-2.py')
-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) |