summaryrefslogtreecommitdiff
path: root/tbc
diff options
context:
space:
mode:
authormaheshgudi2016-05-09 13:00:04 +0530
committermaheshgudi2016-05-09 13:00:04 +0530
commiteb3726c7e82a3fea64365f11aaa3d1f7699d5047 (patch)
treeef260655e57e3d23d023b7dc15fc248275185812 /tbc
parent1d1516a85d60a8cb3baa0467bd7b4fc2b6da0c7f (diff)
downloadPython-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-xtbc/views.py2
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)