mirror of
https://github.com/wassname/catalyst.git
synced 2026-07-25 13:10:33 +08:00
patched regex to work on jenkins
This commit is contained in:
+6
-2
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user