[sagenb] 138/157: Path name for live documentation jmol files, fixes #256

felix salfelder felix-guest at moszumanska.debian.org
Mon Dec 22 16:52:01 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 1e669dfb3bb35598338b015ef8799c4594dd0772
Author: Volker Braun <vbraun.name at gmail.com>
Date:   Thu Nov 6 15:20:10 2014 +0000

    Path name for live documentation jmol files, fixes #256
---
 sagenb/notebook/cell.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/sagenb/notebook/cell.py b/sagenb/notebook/cell.py
index d0ce526..0e21e6c 100755
--- a/sagenb/notebook/cell.py
+++ b/sagenb/notebook/cell.py
@@ -2339,10 +2339,10 @@ class Cell(Cell_generic):
                 jmol_script = f.read()
             jmol_script = jmol_script.replace(
                 'defaultdirectory "', 
-                'defaultdirectory "{0}'.format(self.url_to_worksheet()))
+                'defaultdirectory "{0}/'.format(self.url_to_worksheet()))
             with open(jmol_name, 'w') as f:
                 f.write(jmol_script)
-
+ 
         image_name = os.path.join(self.url_to_self(),'.jmol_images',F)
         script_name = os.path.join(self.url_to_self(), F)
         return textwrap.dedent("""

-- 
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