diff options
author | maheshgudi | 2016-05-09 13:00:04 +0530 |
---|---|---|
committer | maheshgudi | 2016-05-09 13:00:04 +0530 |
commit | eb3726c7e82a3fea64365f11aaa3d1f7699d5047 (patch) | |
tree | ef260655e57e3d23d023b7dc15fc248275185812 /tbc | |
parent | 1d1516a85d60a8cb3baa0467bd7b4fc2b6da0c7f (diff) | |
download | Python-TBC-Interface-eb3726c7e82a3fea64365f11aaa3d1f7699d5047.tar.gz Python-TBC-Interface-eb3726c7e82a3fea64365f11aaa3d1f7699d5047.tar.bz2 Python-TBC-Interface-eb3726c7e82a3fea64365f11aaa3d1f7699d5047.zip |
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 1344b9f..88e1994 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) |