--- a/sbsv2/raptor/python/plugins/filter_what.py Mon Dec 14 22:17:56 2009 +0000
+++ b/sbsv2/raptor/python/plugins/filter_what.py Wed Dec 16 15:25:49 2009 +0000
@@ -22,6 +22,10 @@
class FilterWhat(filter_interface.Filter):
+ def __init__(self):
+ super(filter_interface.Filter,self).__init__(self)
+ self.path_prefix_to_strip = None
+ print "HELLO=------"
def print_file(self, line, start, end):
"Ensure DOS slashes on Windows"
@@ -33,6 +37,10 @@
filename = line[(start + 1):end].replace("/","\\")
else:
filename = line[(start + 1):end]
+
+ if self.path_prefix_to_strip:
+ if filename.startswith(self.path_prefix_to_strip):
+ filename = filename[len(self.path_prefix_to_strip):]
if self.check:
if not os.path.isfile(filename):