def addsep(path):
 if (path and (path[(-1)] != os.path.sep)):
  return (path + os.path.sep)
 return path

def addsep ( path ) : if ( path and ( path [ ( - 1 ) ] != os . path . sep ) ) : return ( path + os . path . sep ) return path
add a trailing path separator .