From: <ki...@us...> - 2003-03-14 23:33:07
|
Update of /cvsroot/pymerase/pymerase/examples/manyToMany In directory sc8-pr-cvs1:/tmp/cvs-serv24468 Added Files: createapi.py Log Message: dbapi --- NEW FILE: createapi.py --- #!/usr/bin/env python import sys import os import pymerase # NOTE: Jython can't use the python way to load modules based on their name # NOTE: so we have to manually import the modules we're using # NOTE: and pass them to pymerase.run import pymerase.input.parseXMI import pymerase.output.CreateDBAPI if __name__ == "__main__": schema = os.path.abspath("./manyToMany.xmi") outputPath = os.path.abspath("./m2mAPI") #pymerase.run(schema, 'parseXMI', output, 'CreateDBAPI') pymerase.run(schema, pymerase.input.parseXMI, outputPath, pymerase.output.CreateDBAPI) |