Skip to content
This repository has been archived by the owner on Jan 15, 2024. It is now read-only.

Commit

Permalink
[Bugfix] Fix invoking docs/md2ipynb.py from Makefile (#1193)
Browse files Browse the repository at this point in the history
  • Loading branch information
WANG, Chen authored Apr 2, 2020
1 parent 0d829f7 commit f092e60
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/md2ipynb.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@

# Change working directory to directory of input file
input_dir, input_fn = os.path.split(args.input)
os.chdir(input_dir)
if input_dir:
os.chdir(input_dir)

output_fn = '.'.join(input_fn.split('.')[:-1] + ['ipynb'])

Expand Down

0 comments on commit f092e60

Please sign in to comment.