Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #138 from ppurka/dot_sagenb

properly handle directories not ending in .sagenb
  • Loading branch information...
commit 9ad39937cbc81385cc0d48d15e5a2ee818133447 2 parents cc045c8 + 11020e4
@kini kini authored
Showing with 2 additions and 0 deletions.
  1. +2 −0  sagenb/notebook/run_notebook.py
View
2  sagenb/notebook/run_notebook.py
@@ -505,6 +505,8 @@ def notebook_run(self,
directory = '%s/sage_notebook.sagenb' % DOT_SAGENB
else:
directory = directory.rstrip('/')
+ if not directory.endswith('.sagenb'):
+ directory += '.sagenb'
# First change to the directory that contains the notebook directory
wd = os.path.split(directory)
Please sign in to comment.
Something went wrong with that request. Please try again.