CMS 3D CMS Logo

Functions | Variables

cmsCodeRules::pathToRegEx Namespace Reference

Functions

def pathsToRegEx
def pathToRegEx

Variables

string __author__ = "Aurelija"
string __date__ = "$2010-08-25 11.18.53$"

Function Documentation

def cmsCodeRules::pathToRegEx::pathsToRegEx (   Paths)

Definition at line 7 of file pathToRegEx.py.

00008                        :
00009     paths = []
00010     for path in Paths:
00011         path = pathToRegEx(path)
00012         paths.append(path)
00013     return paths

def cmsCodeRules::pathToRegEx::pathToRegEx (   path)

Definition at line 14 of file pathToRegEx.py.

00015                      :
00016     path = path.replace("\\", "\\\\")
00017     path = "\A%s$" %path
00018     path = path.replace(".", "\.")
00019     path = path.replace("*",".*")
00020     return path

Variable Documentation

Definition at line 4 of file pathToRegEx.py.

string cmsCodeRules::pathToRegEx::__date__ = "$2010-08-25 11.18.53$"

Definition at line 5 of file pathToRegEx.py.