[sagenb] 54/179: properly handle directories not ending in .sagenb

felix salfelder felix-guest at moszumanska.debian.org
Tue May 6 12:05:09 UTC 2014


This is an automated email from the git hooks/post-receive script.

felix-guest pushed a commit to branch master
in repository sagenb.

commit b3939f2d99b63bd43d78d244d22f80775882b7ef
Author: P Purkayastha <ppurka at gmail.com>
Date:   Sun Mar 3 21:11:45 2013 +0800

    properly handle directories not ending in .sagenb
---
 sagenb/notebook/run_notebook.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/sagenb/notebook/run_notebook.py b/sagenb/notebook/run_notebook.py
index e2fea7c..d7ea453 100644
--- a/sagenb/notebook/run_notebook.py
+++ b/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 directory[-7:] != '.sagenb':
+            directory += '.sagenb'
 
     # First change to the directory that contains the notebook directory
     wd = os.path.split(directory)

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/sagenb.git



More information about the debian-science-commits mailing list