Add import.py script

selenium-screenshot-testing
Kevin Chung 2017-04-26 22:46:06 -04:00
parent 3488baf504
commit 8af911b745
1 changed files with 9 additions and 0 deletions

9
import.py Normal file
View File

@ -0,0 +1,9 @@
from CTFd import create_app
from CTFd.utils import import_ctf
import zipfile
import sys
app = create_app()
with app.app_context():
import_ctf(sys.argv[1])