From eb3726c7e82a3fea64365f11aaa3d1f7699d5047 Mon Sep 17 00:00:00 2001
From: maheshgudi
Date: Mon, 9 May 2016 13:00:04 +0530
Subject: removed strip in convert_notebook and added rsplit

---
 tbc/views.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'tbc')

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