mirror of
https://github.com/kennethreitz-archive/plac.git
synced 2026-06-05 15:40:17 +00:00
12 lines
287 B
Python
12 lines
287 B
Python
# example7_.py
|
|
from datetime import datetime
|
|
|
|
def main(dsn: "Database dsn", *scripts: "SQL scripts"):
|
|
"Run the given scripts on the database"
|
|
for script in scripts:
|
|
print('executing %s' % script)
|
|
# ...
|
|
|
|
if __name__ == '__main__':
|
|
import plac; plac.call(main)
|