def _locate_file(f, base_dir):
if base_dir == None:<EOL><INDENT>return f<EOL><DEDENT>file_name = os.path.join(base_dir, f)<EOL>real = os.path.realpath(file_name)<EOL>return real<EOL>
Utility method for finding full path to a filename as string