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

19. relToURL(): URL of a relative path

Converts dirPath plus a page name to a URL.

# - - -   r e l T o U R L

def relToURL(dirPath, pageName):
    '''Find the URL of a given page.

      [ (dirPath is a path relative to TCC_URL) and
        (pageName is a page name) ->
          return the equivalent URL of that page ]
    return ''.join((TCC_URL, dirPath, pageName))