CNSAnalysis/AdditionalAnalyses/calculateXYZ.py
def parseConfigFindPath(stringFind,configFile):
    """findPath will find path of associated specified string or info from config file"""
    for line in configFile:
        if stringFind in line: # if find string specified, return pathname or info
            configFile.seek(0)
            return line.split()[-1].strip('\n')
    configFile.seek(0)
findPath will find path of associated specified string or info from config file
findPath will find path of associated specified string or info from config file
findPath will find path of associated specified string or info from config file
def parseConfigFindPath(stringFind,configFile):
    for line in configFile:
        if stringFind in line: 
            configFile.seek(0)
            return line.split()[-1].strip('\n')
    configFile.seek(0)
def parseConfigFindPath ( stringFind , configFile ) : for line in configFile : if stringFind in line : configFile . seek ( 0 ) return line . split ( ) [ - 1 ] . strip ( '\n' ) configFile . seek ( 0 )
findPath will find path of associated specified string or info from config file
findPath will find path of associated specified string or info from config file
"""findPath will find path of associated specified string or info from config file""" # if find string specified, return pathname or info
stringFind
configFile