CMS 3D CMS Logo

Functions | Variables
pathToRegEx Namespace Reference

Functions

def pathsToRegEx (Paths)
 
def pathToRegEx (path)
 

Variables

 __author__
 
 __date__
 

Function Documentation

◆ pathsToRegEx()

def pathToRegEx.pathsToRegEx (   Paths)

Definition at line 7 of file pathToRegEx.py.

Referenced by filesFinder.getFilePathsFromWalk().

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

◆ pathToRegEx()

def pathToRegEx.pathToRegEx (   path)

Definition at line 14 of file pathToRegEx.py.

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

Variable Documentation

◆ __author__

pathToRegEx.__author__
private

Definition at line 4 of file pathToRegEx.py.

◆ __date__

pathToRegEx.__date__
private

Definition at line 5 of file pathToRegEx.py.