Skip to content

Commit

Permalink
Merge commit '11c1a5662761b7d34764c16b2850d676f41bf155' into feature/…
Browse files Browse the repository at this point in the history
…update-utils
  • Loading branch information
kangwonlee committed Jun 9, 2019
2 parents 39dda1f + 11c1a56 commit c71223d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test_nb.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def _exec_notebook_win(path):
# obtain a temporary filename
# https://docs.python.org/3/library/tempfile.html
ftemp = tempfile.NamedTemporaryFile(suffix=".ipynb")
filename = os.path.join(os.getcwd(), os.path.split(ftemp.name)[-1])
filename = os.path.join(os.getcwd(), os.path.basename(ftemp.name))
ftemp.close()

# prepare a command running .ipynb file while converting
Expand Down Expand Up @@ -95,7 +95,7 @@ def get_exec_notebook():
return os_to_function_table.get(os.name, _exec_notebook_nix)


def make_file_list(path=os.path.abspath(os.path.join(os.path.split(__file__)[0], os.pardir)), ext='ipynb'):
def make_file_list(path=os.path.abspath(os.path.join(os.path.dirname(__file__), os.pardir)), ext='ipynb'):

file_list = []

Expand Down

0 comments on commit c71223d

Please sign in to comment.