def clean_path(a_path, force_os=None, force_start=None):
if not force_start:<EOL><INDENT>force_start = os.curdir<EOL><DEDENT>if force_os == "<STR_LIT>":<EOL><INDENT>import ntpath<EOL>return ntpath.relpath(ntpath.normpath(a_path),<EOL>start=force_start)<EOL><DEDENT>if force_os == "<STR_LIT>":<EOL><INDENT>import posixpath<EOL>return posixpath.relpath(posixpath.normpath(a_path),<EOL>start=force_start)<EOL><DEDENT>return os.path.relpath(os.path.normpath(a_path),<EOL>start=force_start)<EOL>
This function is used to normalize the path (of an output or
dependency) and also provide the path in relative form. It is
relative to the current working directory