17 lines
398 B
Python
17 lines
398 B
Python
from simfile_smoketest.args import SmoketestArgs
|
|
from simfile_smoketest.runner import SmoketestRun
|
|
from simfile_smoketest.storage import DB, MODELS
|
|
|
|
|
|
def main():
|
|
args = SmoketestArgs().parse_args()
|
|
|
|
DB.connect()
|
|
if args.init_db:
|
|
DB.create_tables(MODELS)
|
|
if args.songs_dir:
|
|
SmoketestRun(args).process_songs_dir(args.songs_dir)
|
|
|
|
|
|
if __name__ == "__main__":
|
|
main()
|