We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 45e428d commit f6c0dbeCopy full SHA for f6c0dbe
1 file changed
makePDF.py
@@ -906,13 +906,15 @@ def do_finish(self, can_switch_to_pdf):
906
)
907
elif isinstance(copy_on_build, list):
908
for ext in copy_on_build:
909
- shutil.copy2(
910
- os.path.join(
911
- self.output_directory,
912
- self.tex_base + ext
913
- ),
914
- os.path.dirname(self.file_name)
+ copy_file = os.path.join(
+ self.output_directory,
+ self.tex_base + ext
915
+ if os.path.isfile(copy_file):
+ shutil.copy2(
+ copy_file,
916
+ os.path.dirname(self.file_name)
917
+ )
918
919
if get_setting('open_pdf_on_build', True, view=self.view):
920
self.view.run_command("jump_to_pdf", {"from_keybinding": False})
0 commit comments