Files
plac/doc/example7.py
T
2010-09-06 01:32:36 -04:00

12 lines
255 B
Python

# example7.py
from datetime import datetime
def main(dsn, *scripts):
"Run the given scripts on the database"
for script in scripts:
print('executing %s' % script)
# ...
if __name__ == '__main__':
import plac; plac.call(main)