v/pol
1
0
mirror of https://github.com/taroved/pol synced 2025-05-15 13:50:09 -07:00
pol/downloader.py
Alexandr Nesterenko 6e9884e34a lib start
2017-10-08 13:29:41 -04:00

9 lines
248 B
Python

import sys
from pol.server import Server
from settings import DATABASES, SNAPSHOT_DIR, DOWNLOADER_USER_AGENT, DEBUG
port = sys.argv[1] if len(sys.argv) >= 2 else 1234
Server(port, DATABASES['default'], SNAPSHOT_DIR, DOWNLOADER_USER_AGENT).run()