From: <ki...@us...> - 2003-03-14 22:30:39
|
Update of /cvsroot/pymerase/pymerase/examples/selfRefObj In directory sc8-pr-cvs1:/tmp/cvs-serv31937 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("./selfRefObj.xmi") outputPath = os.path.abspath("./SelfRefAPI") #pymerase.run(schema, 'parseXMI', output, 'CreateDBAPI') pymerase.run(schema, pymerase.input.parseXMI, outputPath, pymerase.output.CreateDBAPI) |