コード例 #1
0
ファイル: __init__.py プロジェクト: GymWenFLL/tpp_libs
    def __init__(self, repo, command=None, cwd=None):
        """
        Initialize an ExternalCommand instance tied to a GitRepository
        from which it inherits a set of environment variables to use
        for each execute().
        """

        self.repo = repo
        return ExternalCommand.__init__(self, command, cwd)
コード例 #2
0
ファイル: __init__.py プロジェクト: saminigod/cygwin
    def __init__(self, repo, command=None, cwd=None):
        """
        Initialize an ExternalCommand instance tied to a GitRepository
        from which it inherits a set of environment variables to use
        for each execute().
        """

        self.repo = repo
        return ExternalCommand.__init__(self, command, cwd)
コード例 #3
0
ファイル: __init__.py プロジェクト: lelit/tailor
    def __init__(self, repo, command=None, cwd=None):
        """
        Initialize an ExternalCommand instance tied to a GitRepository
        from which it inherits a set of environment variables to use
        for each execute().
        """

        # escape % signs in the command
        command = [c.replace("%","%%") for c in command]

        self.repo = repo
        return ExternalCommand.__init__(self, command, cwd)
コード例 #4
0
ファイル: __init__.py プロジェクト: yut148/tailor
    def __init__(self, repo, command=None, cwd=None):
        """
        Initialize an ExternalCommand instance tied to a GitRepository
        from which it inherits a set of environment variables to use
        for each execute().
        """

        # escape % signs in the command
        command = [c.replace("%", "%%") for c in command]

        self.repo = repo
        return ExternalCommand.__init__(self, command, cwd)