def __init__()

in src/context.py [0:0]


    def __init__(self, artifacts=None, context_path="context.tar.gz", artifact_root="./"):
        """
        The constructor for the Context class

        Parameters:
            artifacts: array of (source, destination) tuples
            context_path: path for the resulting tar.gz file
            artifact_root: root directory for all artifacts

        Returns:
            None

        """
        self.artifacts = {}
        self.context_path = context_path
        self.artifact_root = artifact_root

        # Check if the context path is just a filename,
        # or includes a directory. If path includes a
        # directory, create directory if it does not exist
        directory = os.path.dirname(context_path)
        if directory != "" and not os.path.isdir(directory):
            os.mkdir(directory)

        if artifacts is not None:
            self.add(artifacts)