def _NormalizedSource(source):
 normalized = os.path.normpath(source)
 if (source.count('$') == normalized.count('$')):
  source = normalized
 return source

def _NormalizedSource ( source ) : normalized = os . path . normpath ( source ) if ( source . count ( '$' ) == normalized . count ( '$' ) ) : source = normalized return source
normalize the path .