def _expand_path(path):
 return (path if is_win() else ('"$(echo %s)"' % path))

def _expand_path ( path ) : return ( path if is_win ( ) else ( '"$(echo %s)"' % path ) )
expand both environment variables and user home in the given path .