def abs_file(filename):
path = os.path.expandvars(os.path.expanduser(filename))<EOL>path = os.path.abspath(os.path.realpath(path))<EOL>path = actual_path(path)<EOL>return path<EOL>
Return the absolute normalized form of `filename`.