sceptre/environment.py
def _check_env_path_valid(path):
        """
        Raises an InvalidEnvironmentPathError if the path has a leading or
        trailing slash.

        :param path: A directory path
        :type path: str
        :raises: sceptre.exceptions.InvalidEnvironmentPathError
        """
        if path.endswith("/") or path.startswith("/"):
            raise InvalidEnvironmentPathError(
                "'{0}' is an invalid path string. Environment paths should "
                "not have leading or trailing slashes.".format(path)
            )

        Raises an InvalidEnvironmentPathError if the path has a leading or
        trailing slash.

        :param path: A directory path
        :type path: str
        :raises: sceptre.exceptions.InvalidEnvironmentPathError
        
Raises an InvalidEnvironmentPathError if the path has a leading or
trailing slash.
Raises an InvalidEnvironmentPathError if the path has a leading or trailing slash .
def _check_env_path_valid(path):
        if path.endswith("/") or path.startswith("/"):
            raise InvalidEnvironmentPathError(
                "'{0}' is an invalid path string. Environment paths should "
                "not have leading or trailing slashes.".format(path)
            )
def _check_env_path_valid ( path ) : if path . endswith ( "/" ) or path . startswith ( "/" ) : raise InvalidEnvironmentPathError ( "'{0}' is an invalid path string. Environment paths should " "not have leading or trailing slashes." . format ( path ) )
Raises an InvalidEnvironmentPathError if the path has a leading or
trailing slash.
Raises an InvalidEnvironmentPathError if the path has a leading or trailing slash .
"""
        Raises an InvalidEnvironmentPathError if the path has a leading or
        trailing slash.

        :param path: A directory path
        :type path: str
        :raises: sceptre.exceptions.InvalidEnvironmentPathError
        """
None
path
A directory path
A directory path