Permalink
Browse files

Merge pull request #138 from ppurka/dot_sagenb

properly handle directories not ending in .sagenb
  • Loading branch information...
2 parents cc045c8 + 11020e4 commit 9ad39937cbc81385cc0d48d15e5a2ee818133447 @kini kini committed Mar 22, 2013
Showing with 2 additions and 0 deletions.
  1. +2 −0 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)

0 comments on commit 9ad3993

Please sign in to comment.