Update of /cvsroot/pymerase/pymerase/examples/manyToMany2
In directory sc8-pr-cvs1:/tmp/cvs-serv7564
Added Files:
createpytkdbwidgets.py
Log Message:
widgets
--- NEW FILE: createpytkdbwidgets.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.CreatePyTkDBWidgets
if __name__ == "__main__":
schema = os.path.abspath("./manyToMany.xmi")
outputPath = os.path.abspath("./widgets")
#pymerase.run(schema, 'parseXMI', output, 'CreateDBAPI')
pymerase.run(schema, pymerase.input.parseXMI, outputPath, pymerase.output.CreatePyTkDBWidgets)
|