aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Cramer2011-08-23 21:01:46 -0700
committerDavid Cramer2011-08-23 21:01:46 -0700
commit01474f8accc24e5b94d11a9413006502e743ccc7 (patch)
treeb27f826f2fc903809b789f2436c259bfd89edbcc
parent695e8c06bfc756204e823d1b1792ca6c06e62439 (diff)
parent6606b10870e16e5eadcc88f67564da492b4b6e08 (diff)
downloaddjango-debug-toolbar-01474f8accc24e5b94d11a9413006502e743ccc7.tar.bz2
Merge pull request #194 from olexiystrashko/master
Fix for issue #193
-rw-r--r--debug_toolbar/panels/profiling.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/debug_toolbar/panels/profiling.py b/debug_toolbar/panels/profiling.py
index b3dedf8..289e1f7 100644
--- a/debug_toolbar/panels/profiling.py
+++ b/debug_toolbar/panels/profiling.py
@@ -16,6 +16,7 @@ from cStringIO import StringIO
import cProfile
from pstats import Stats
from colorsys import hsv_to_rgb
+import os
class DjangoDebugToolbarStats(Stats):
__root = None
@@ -64,7 +65,7 @@ class FunctionCall(object):
if idx > -1:
file_name=file_name[idx+14:]
- file_path, file_name = file_name.rsplit('/', 1)
+ file_path, file_name = file_name.rsplit(os.sep, 1)
return mark_safe('<span class="path">{0}/</span><span class="file">{1}</span> in <span class="func">{3}</span>(<span class="lineno">{2}</span>)'.format(
file_path,