Skip to content

Commit

Permalink
printer: expose invocation as raw docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
mara004 committed Jan 4, 2024
1 parent 6be8555 commit 9249223
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ctypesgen/printer_python/printer.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ def print_info(self, argv):
# TODO(py38) consider shlex.join()
argv = [self._strip_private_path(a) for a in argv]
argv_str = ' '.join([f'"{a}"' if ' ' in a else a for a in argv])
self.file.write(f"# Auto-generated by: ctypesgen {argv_str}")
self.file.write(f'r"""\nAuto-generated by:\nctypesgen {argv_str}\n"""')


def print_templates(self, opts, outpath):
Expand Down

0 comments on commit 9249223

Please sign in to comment.