Commit 0b29f8fe authored by coconux's avatar coconux
Browse files

Add comment on import Config module

parent 413c81d6
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -26,9 +26,11 @@ import requests
from yaml import full_load, YAMLError
from jinja2 import Environment, FileSystemLoader, TemplateNotFound

# Set the Path and import the config module
sys.path.insert(0, "./")

# Import the Config module and set the path to run the script from root project
# /!\ This instruction is only working if you run this script from the root of the project
from tools.utils.utils import Config
sys.path.insert(0, "./")
utils = Config()

def get_conf(job_path):
+3 −2
Original line number Diff line number Diff line
@@ -7,9 +7,10 @@ import yaml
import argparse
import re

# Set the Path and import the config module
sys.path.insert(0, "./")
# Import the Config module and set the path to run the script from root project
# /!\ This instruction is only working if you run this script from the root of the project
from tools.utils.utils import Config
sys.path.insert(0, "./")
utils = Config()


+3 −2
Original line number Diff line number Diff line
@@ -6,9 +6,10 @@ import logging
import yaml
import argparse

# Set the Path and import the config module
sys.path.insert(0, "./")
# Import the Config module and set the path to run the script from root project
# /!\ This instruction is only working if you run this script from the root of the project
from tools.utils.utils import Config
sys.path.insert(0, "./")
utils = Config()

def argparse_setup():
+3 −2
Original line number Diff line number Diff line
@@ -9,9 +9,10 @@ from urllib.parse import quote, urlencode
from os import getenv, listdir
import requests

# Set the Path and import the config module
sys.path.insert(0, "./")
# Import the Config module and set the path to run the script from root project
# /!\ This instruction is only working if you run this script from the root of the project
from tools.utils.utils import Config
sys.path.insert(0, "./")
utils = Config()


+3 −2
Original line number Diff line number Diff line
@@ -5,9 +5,10 @@ import logging
import sys
import yaml

# Set the Path and import the config module
sys.path.insert(0, "./")
# Import the Config module and set the path to run the script from root project
# /!\ This instruction is only working if you run this script from the root of the project
from tools.utils.utils import Config
sys.path.insert(0, "./")
utils = Config()

def check_job_yaml(job):