CMS 3D CMS Logo

Functions | Variables
findAndChange Namespace Reference

Functions

def digest_path (path)
 
def find_and_change (keys, var, alt=digest_path)
 
def get_all_keys (var)
 

Variables

 _file = pfnInPath(path_to_check)
 
 env_var = part[1:].replace('{', '').replace('}', '')
 
 path_d = os.path.join(*path_d_s)
 
list path_d_s = []
 
 path_s = path.split("://")[1].split(os.sep)
 
 path_to_check = os.path.join(*path_d_s[:placeholderIdx[0]])
 
list placeholderIdx = []
 
string protocol = ""
 

Function Documentation

◆ digest_path()

def findAndChange.digest_path (   path)

Definition at line 5 of file findAndChange.py.

5 def digest_path(path):
def digest_path(path)
Definition: findAndChange.py:5

◆ find_and_change()

def findAndChange.find_and_change (   keys,
  var,
  alt = digest_path 
)

Definition at line 86 of file findAndChange.py.

References get_all_keys().

86 def find_and_change(keys, var, alt=digest_path):
def find_and_change(keys, var, alt=digest_path)

◆ get_all_keys()

def findAndChange.get_all_keys (   var)

Definition at line 68 of file findAndChange.py.

Referenced by find_and_change().

68 def get_all_keys(var):
def get_all_keys(var)

Variable Documentation

◆ _file

findAndChange._file = pfnInPath(path_to_check)
private

◆ env_var

findAndChange.env_var = part[1:].replace('{', '').replace('}', '')

Definition at line 32 of file findAndChange.py.

◆ path_d

findAndChange.path_d = os.path.join(*path_d_s)

Definition at line 43 of file findAndChange.py.

◆ path_d_s

list findAndChange.path_d_s = []

Definition at line 27 of file findAndChange.py.

◆ path_s

findAndChange.path_s = path.split("://")[1].split(os.sep)

Definition at line 23 of file findAndChange.py.

◆ path_to_check

findAndChange.path_to_check = os.path.join(*path_d_s[:placeholderIdx[0]])

Definition at line 45 of file findAndChange.py.

◆ placeholderIdx

list findAndChange.placeholderIdx = []

Definition at line 28 of file findAndChange.py.

◆ protocol

string findAndChange.protocol = ""
Ensure that everything is done for path to exist
Arguments:
- path: String that can be both directory and file 
Return:
- general: environmental variables are expanded
- directory: is checked to exist
- file: is checked to exist with backup directory being searched in cms-data

Definition at line 20 of file findAndChange.py.

Referenced by edm::FileLocator.applyRules(), edm::storage::StorageFactory.check(), cond::persistency.getConnectionParams(), edm::storage::StorageFactory.getMaker(), edm::FileLocator.init(), edm::storage::StorageFactory.open(), cond::persistency.parseConnectionString(), edm::FileLocator.parseRule(), edm::FileLocator.parseRuleTrivialCatalog(), and edm::storage::StorageFactory.stagein().