def abspath(cur_file, parent=<NUM_LIT:0>) -> str:
file_path = os.path.abspath(cur_file).replace('<STR_LIT:\\>', '<STR_LIT:/>')<EOL>if os.path.isdir(file_path) and parent == <NUM_LIT:0>: return file_path<EOL>adj = <NUM_LIT:1> - os.path.isdir(file_path)<EOL>return '<STR_LIT:/>'.join(file_path.split('<STR_LIT:/>')[:-(parent + adj)])<EOL>
Absolute path

Args:
    cur_file: __file__ or file or path str
    parent: level of parent to look for

Returns:
    str