示例#1
0
def convert_datamodel(source, destination, dry_run=0):
    destination = os.path.splitext(destination)[0] + ".mom"

    if dry_run:
        return

    momc(source, destination)
示例#2
0
def convert_datamodel(source, destination, dry_run=0):
    destination = os.path.splitext(destination)[0] + ".mom"

    if dry_run:
        return

    momc(source, destination)
示例#3
0
 def compile_datamodels(self, resdir):
     for src, dest in self.iter_datamodels(resdir):
         print "compile datamodel", src, "->", dest
         self.mkpath(os.path.dirname(dest))
         momc(src, dest)
示例#4
0
 def compile_datamodels(self, resdir):
     for src, dest in self.iter_datamodels(resdir):
         print "compile datamodel", src, "->", dest
         self.mkpath(os.path.dirname(dest))
         momc(src, dest)