patched regex to work on jenkins

This commit is contained in:
fawce
2012-07-30 18:23:17 -04:00
parent 7d4bfb023e
commit f1f2fadf81
+6 -2
View File
@@ -545,8 +545,12 @@ def shorten_filename(filename):
if filename == None:
return None
# check if the path contains zipeline_repo
path_re = r'(?<=zipline/).*'
# check if the path contains zipeline
# looks for a zipline directory in the middle of the path
# this will work on
# /zipline/workspace/zipline/core/component.py, but fail for
# /home/fawce/projects/zipline/zipline/core/component.py
path_re = r'(?<=./zipline/).*'
match = re.search(path_re, filename)
if match: