Next / Previous / Contents / TCC Help System / NM Tech homepage

20. relToAbs(): Absolute path from a relative path

Converts dirPath plus a page name to an absolute path.

homelist2
# - - -   r e l T o A b s

def relToAbs(dirPath, pageName):
    '''Find the absolute path to a given page.

      [ (dirPath is a path relative to TCC_ABS) and
        (pageName is a page name) ->
          return the equivalent absolute path name ]
    '''
    return ''.join((TCC_ABS, dirPath, pageName))