def get_normalized_file_path(file_path):
    """
    Return a full normalized file path for the provided path string.

    :rtype: ``str``
    """
    if hasattr(sys, 'frozen'):  # support for py2exe
        file_path = 'logging%s__init__%s' % (os.sep, file_path[-4:])
    elif file_path[-4:].lower() in ['.pyc', '.pyo']:
        file_path = file_path[:-4] + '.py'
    else:
        file_path = file_path

    file_path = os.path.normcase(file_path)
    return file_path
dataset/ETHPy150Open StackStorm/st2/st2common/st2common/util/misc.py/get_normalized_file_path/original