mirror of
https://github.com/kennethreitz-archive/plac.git
synced 2026-06-05 07:36:12 +00:00
12 lines
255 B
Python
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)
|