diff options
| author | David Cramer | 2011-08-23 21:01:46 -0700 | 
|---|---|---|
| committer | David Cramer | 2011-08-23 21:01:46 -0700 | 
| commit | 01474f8accc24e5b94d11a9413006502e743ccc7 (patch) | |
| tree | b27f826f2fc903809b789f2436c259bfd89edbcc | |
| parent | 695e8c06bfc756204e823d1b1792ca6c06e62439 (diff) | |
| parent | 6606b10870e16e5eadcc88f67564da492b4b6e08 (diff) | |
| download | django-debug-toolbar-01474f8accc24e5b94d11a9413006502e743ccc7.tar.bz2 | |
Merge pull request #194 from olexiystrashko/master
Fix for issue #193
| -rw-r--r-- | debug_toolbar/panels/profiling.py | 3 | 
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,  | 
