From 7d4bfb023ec8c90c446a78be427737fbad69e581 Mon Sep 17 00:00:00 2001 From: fawce Date: Mon, 30 Jul 2012 18:02:12 -0400 Subject: [PATCH] keying the shorted stack trace path on zipline, rather than zipline_repo --- zipline/protocol.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/zipline/protocol.py b/zipline/protocol.py index cfe6f611..c51845ef 100644 --- a/zipline/protocol.py +++ b/zipline/protocol.py @@ -546,13 +546,12 @@ def shorten_filename(filename): return None # check if the path contains zipeline_repo - path_re = r'(?<=zipline_repo).*' + path_re = r'(?<=zipline/).*' match = re.search(path_re, filename) if match: - return match.group(0) - parts = filename.split('zipline_repo') - return parts[1] + filepath = match.group(0) + return os.path.join('/zipline',filepath) else: # return just the filename. head, tail = os.path.split(filename)