blob: 541c4ac36dfeb0e43928179a07c58befaced5233 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
# 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)
|