Sfoglia il codice sorgente

workers need re-work

Steve L. Nyemba 8 anni fa
parent
commit
65013e0cac
1 ha cambiato i file con 14 aggiunte e 0 eliminazioni
  1. 14 0
      src/utils/__init__.py

+ 14 - 0
src/utils/__init__.py

@@ -1 +1,15 @@
 
+
+import os
+import json
+from utils.workers import *
+from utils.params import PARAMS
+f = open(PARAMS['path'])
+config = json.loads(f.read())
+f.close()
+from threading import RLock
+lock = RLock()
+p = Learner(config,lock)
+p.daemon = True
+p.start()
+p.join()