Ejemplo n.º 1
0
Archivo: doc.py Proyecto: tomspur/dexy
    def setup_initial_artifact(self):
        if os.path.exists(self.name):
            initial = InitialArtifact(self.name, runner=self.runner)
        else:
            initial = InitialVirtualArtifact(self.name, runner=self.runner)

        initial.args = self.args
        initial.name = self.name
        initial.prior = None
        initial.doc = self
        initial.created_by_doc = self.created_by_doc

        self.children.append(initial)
        self.artifacts.append(initial)
        self.final_artifact = initial
Ejemplo n.º 2
0
Archivo: doc.py Proyecto: tomspur/dexy
    def setup_initial_artifact(self):
        if os.path.exists(self.name):
            initial = InitialArtifact(self.name, runner=self.runner)
        else:
            initial = InitialVirtualArtifact(self.name, runner=self.runner)

        initial.args = self.args
        initial.name = self.name
        initial.prior = None
        initial.doc = self
        initial.created_by_doc = self.created_by_doc

        self.children.append(initial)
        self.artifacts.append(initial)
        self.final_artifact = initial