diff options
author | Mahesh Gudi | 2016-05-09 13:03:09 +0530 |
---|---|---|
committer | Mahesh Gudi | 2016-05-09 13:03:09 +0530 |
commit | 9599a4d6f6fbaa2a0e4bcebb67038c8568ef2a9b (patch) | |
tree | 1f16494db8ca08e20ce39773149bf9334eb1630c /tbc | |
parent | 80fece5a88ab17ae62d7730682ebb54acb4939e5 (diff) | |
parent | eb3726c7e82a3fea64365f11aaa3d1f7699d5047 (diff) | |
download | Python-TBC-Interface-9599a4d6f6fbaa2a0e4bcebb67038c8568ef2a9b.tar.gz Python-TBC-Interface-9599a4d6f6fbaa2a0e4bcebb67038c8568ef2a9b.tar.bz2 Python-TBC-Interface-9599a4d6f6fbaa2a0e4bcebb67038c8568ef2a9b.zip |
Merge pull request #34 from maheshgudi/master
removed strip in convert_notebook and added rsplit
Diffstat (limited to 'tbc')
-rwxr-xr-x | tbc/views.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tbc/views.py b/tbc/views.py index 009a98d..7985128 100755 --- a/tbc/views.py +++ b/tbc/views.py @@ -1194,7 +1194,7 @@ def ConvertNotebook(request, notebook_path=None): new one if corresponding ipython notebook has been modified. """ context = {} - path = os.path.join(local.path, notebook_path.strip(".ipynb")) + path = os.path.join(local.path, notebook_path.rsplit(".", 1)[0]) template_html = path+".html" template_ipynb =path+".ipynb" template_dir = os.path.dirname(path) |