def normjoin(*path_parts):
 return os.path.normpath(os.path.normcase(os.path.join(*path_parts)))

def normjoin ( * path_parts ) : return os . path . normpath ( os . path . normcase ( os . path . join ( * path_parts ) ) )
normjoin combines the following python os .