CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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.

References cmsCodeRules.pathToRegEx.pathToRegEx().

Referenced by cmsCodeRules.filesFinder.getFilePathsFromWalk().

7 
8 def pathsToRegEx(Paths):
9  paths = []
10  for path in Paths:
11  path = pathToRegEx(path)
12  paths.append(path)
13  return paths
def cmsCodeRules.pathToRegEx.pathToRegEx (   path)

Definition at line 14 of file pathToRegEx.py.

Referenced by cmsCodeRules.filesFinder.getFilePathsFromWalk(), cmsCodeRules.pathToRegEx.pathsToRegEx(), and cmsCodeRulesChecker.runRules().

14 
15 def pathToRegEx(path):
16  path = path.replace("\\", "\\\\")
17  path = "\A%s$" %path
18  path = path.replace(".", "\.")
19  path = path.replace("*",".*")
20  return path

Variable Documentation

string cmsCodeRules.pathToRegEx.__author__ = "Aurelija"

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.