Update main.py

This commit is contained in:
耿伦伦 2021-12-02 00:12:14 +08:00 committed by GitHub
parent d61800b755
commit 58d74d473e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3,7 +3,6 @@ import threading
from urllib.parse import urlparse
from scripts import watcher, webdriver
from config.helper import config
if __name__ == '__main__':
if len(sys.argv) == 1 or not urlparse(sys.argv[1]).scheme:
@ -15,4 +14,4 @@ if __name__ == '__main__':
w = watcher.Watcher(directory=config()['watchdog']['dir'])
w.run()