diff options
Diffstat (limited to 'tools')
-rw-r--r-- | tools/autodebugger.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/autodebugger.py b/tools/autodebugger.py index c74e56d2..df9594b3 100644 --- a/tools/autodebugger.py +++ b/tools/autodebugger.py @@ -282,7 +282,9 @@ for i in range(len(lines)): lines_added += 1 f = open(ofilename, 'w') -f.write('\n'.join(lines) + '\n' + POSTAMBLE + '\n') +ll = '\n'.join(lines) +meta_start = ll.find('\n!') +f.write(ll[:meta_start] + '\n' + POSTAMBLE + '\n' + ll[meta_start:]) f.close() print 'Success.' |