Skip to content

Commit

Permalink
Merge pull request #1075 from t-makaro/splitext
Browse files Browse the repository at this point in the history
fix #785
  • Loading branch information
MSeal authored Jul 30, 2019
2 parents a00aab9 + 86c9dad commit 8e3cfb4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nbconvert/exporters/exporter.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ def from_filename(self, filename, resources=None, **kw):
if not 'metadata' in resources or resources['metadata'] == '':
resources['metadata'] = ResourcesDict()
path, basename = os.path.split(filename)
notebook_name = basename[:basename.rfind('.')]
notebook_name = os.path.splitext(basename)[0]
resources['metadata']['name'] = notebook_name
resources['metadata']['path'] = path

Expand Down

0 comments on commit 8e3cfb4

Please sign in to comment.