CTFd/import.py

10 lines
161 B
Python
Raw Normal View History

2017-04-27 02:46:06 +00:00
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])