CMS 3D CMS Logo

Functions | Variables

pathToRegEx Namespace Reference

Functions

def pathsToRegEx
def pathToRegEx

Variables

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

Function Documentation

def 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 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

string pathToRegEx::__author__ = "Aurelija"

Definition at line 4 of file pathToRegEx.py.

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

Definition at line 5 of file pathToRegEx.py.