(name)
Prevent paths in *_scripts entry point names.
Prevent paths in *_scripts entry point names.
Prevent paths in * _scripts entry point names .
def _ensure_safe_name(name):
        """
        Prevent paths in *_scripts entry point names.
        """
        has_path_sep = re.search(r'[\\/]', name)
        if has_path_sep:
            raise ValueError("Path separators not allowed in script names")
def _ensure_safe_name ( name ) : has_path_sep = re . search ( r'[\\/]' , name ) if has_path_sep : raise ValueError ( "Path separators not allowed in script names" )