diff --git a/doc/ext/plot_directive.py b/doc/ext/plot_directive.py index 8de8c739..24dc5598 100644 --- a/doc/ext/plot_directive.py +++ b/doc/ext/plot_directive.py @@ -342,6 +342,8 @@ def run(arguments, content, options, state_machine, state, lineno): f = open(target_name, 'w') f.write(unescape_doctest(code)) f.close() + else: + shutil.copy(source_file_name, dest_dir) return []