Skip to content

Commit

Permalink
wizard: copy ts file when tsc not found
Browse files Browse the repository at this point in the history
  • Loading branch information
ZoomTen committed Jul 2, 2023
1 parent d432a33 commit c92f7a6
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion mdiocre/wizard.py
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,12 @@ def generate_from_path(self, source_file, built_file, root='', to_html=False, le
)

except FileNotFoundError as e:
logger.log(log_error + level, "can't find tsc on your system")
logger.log(log_error + level, "can't find tsc on your system, copying instead")
built_file = os.path.extsep.join([built_name, built_ext])
shutil.copyfile(
source_file,
built_file
)

except subprocess.CalledProcessError as e:
logger.log(log_error + level, "compilation failed with code {}".format(e.returncode))
Expand Down

0 comments on commit c92f7a6

Please sign in to comment.