remove threading
This commit is contained in:
parent
bcf113cf80
commit
3f543d66db
15
utils.py
15
utils.py
|
@ -1,8 +1,6 @@
|
||||||
__author__ = 'tyrelsouza'
|
__author__ = 'tyrelsouza'
|
||||||
import os
|
import os
|
||||||
import json
|
import json
|
||||||
import threading
|
|
||||||
import time
|
|
||||||
|
|
||||||
|
|
||||||
def get_dropbox_dir():
|
def get_dropbox_dir():
|
||||||
|
@ -25,16 +23,3 @@ def get_dropbox_dir():
|
||||||
dropbox_dir = os.path.expanduser("~")
|
dropbox_dir = os.path.expanduser("~")
|
||||||
|
|
||||||
return dropbox_dir
|
return dropbox_dir
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
class ThreadedTask(threading.Thread):
|
|
||||||
def __init__(self, queue, report):
|
|
||||||
threading.Thread.__init__(self)
|
|
||||||
self.queue = queue
|
|
||||||
self.report = report
|
|
||||||
|
|
||||||
def run(self):
|
|
||||||
self.report.run()
|
|
||||||
self.report.save()
|
|
||||||
self.queue.put("Task finished")
|
|
Loading…
Reference in New Issue
Block a user