update path
Signed-off-by: Omar Sánchez Pizarro <omar.sanchez@pistacero.net>
This commit is contained in:
@@ -25,7 +25,10 @@ def configure_logger():
|
||||
handlers=[console_handler, file_handler])
|
||||
|
||||
def parse_items_to_monitor():
|
||||
with open("workers.json") as f:
|
||||
import os
|
||||
base_dir = os.path.dirname(os.path.abspath(__file__))
|
||||
workers_path = os.path.join(base_dir, "workers.json")
|
||||
with open(workers_path) as f:
|
||||
args = json.load(f)
|
||||
if 'items' not in args:
|
||||
raise ValueError("Missing mandatory field: items")
|
||||
|
||||
Reference in New Issue
Block a user