This commit is contained in:
耿伦伦
2021-12-01 15:33:40 +08:00
parent 10f5f445db
commit ecba1fbc31
7 changed files with 44 additions and 4 deletions

View File

@ -1,4 +1,5 @@
import sys
import threading
from urllib.parse import urlparse
from scripts import watcher, webdriver
@ -9,7 +10,9 @@ if __name__ == '__main__':
print('Invalid url provided, please check...')
sys.exit(1)
webdriver.go(sys.argv[1])
t = threading.Thread(target=webdriver.go, args=(sys.argv[1],))
t.start()
w = watcher.Watcher(directory=config()['watchdog']['dir'])
w.run()