Commit b07dd9a9 authored by Thomas Boni's avatar Thomas Boni
Browse files

Merge branch '300-create-classes-to-manage-r2devops-ci' into 'latest'

Set path to module tools in script

Closes #300

See merge request r2devops/hub!170
parents 62662a54 0b29f8fe
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -29,8 +29,11 @@ from yaml import full_load, YAMLError
from jinja2 import Environment, FileSystemLoader, TemplateNotFound
import argparse

# Import the config module

# 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 −1
Original line number Diff line number Diff line
@@ -7,8 +7,10 @@ import yaml
import argparse
import re

# Import the config module
# 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 −1
Original line number Diff line number Diff line
@@ -10,8 +10,10 @@ from os import getenv, listdir
import requests
import argparse

# Import the config module
# 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_labels(project_name, with_counts=False, include_ancestor_groups=True, search=""):
+3 −1
Original line number Diff line number Diff line
@@ -6,8 +6,10 @@ import logging
import yaml
import argparse

# Import the config module
# 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 −1
Original line number Diff line number Diff line
@@ -6,8 +6,10 @@ import sys
import yaml
from yaml import full_load, YAMLError

# Import the config module
# 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()

# List of available labels for jobs