def extend_string(extend_element, before_module):
    """ translates the separating dots to slashes before filename or to quad points after the filename  """
    if before_module:
        extend_element += '/'
    else:
        extend_element += '::'
    return extend_element
