Skip to content

Commit 54b394b

Browse files
authored
Merge pull request #156 from CamilaAlvarez/fix/import-error
Fix: Turn relative imports to absolute imports
2 parents a156439 + 7032eec commit 54b394b

5 files changed

Lines changed: 15 additions & 13 deletions

File tree

kcidev/libs/files.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
import re
44

55
import requests
6-
from libs.common import kci_err
6+
7+
from kcidev.libs.common import kci_err
78

89
INVALID_FILE_CHARS = re.compile(r'[\\/:"*?<>|]+')
910

kcidev/libs/git_repo.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,8 @@
33
import subprocess
44
import urllib
55

6-
from libs.dashboard import dashboard_fetch_tree_list
7-
86
from kcidev.libs.common import *
7+
from kcidev.libs.dashboard import dashboard_fetch_tree_list
98

109

1110
def repository_url_cleaner(url):

kcidev/subcommands/results/__init__.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,23 +3,24 @@
33
from functools import wraps
44

55
import click
6-
from libs.dashboard import (
6+
7+
from kcidev.libs.dashboard import (
78
dashboard_fetch_boots,
89
dashboard_fetch_build,
910
dashboard_fetch_builds,
1011
dashboard_fetch_summary,
1112
dashboard_fetch_test,
1213
dashboard_fetch_tests,
1314
)
14-
from libs.git_repo import set_giturl_branch_commit
15-
from subcommands.results.hardware import hardware
16-
from subcommands.results.options import (
15+
from kcidev.libs.git_repo import set_giturl_branch_commit
16+
from kcidev.subcommands.results.hardware import hardware
17+
from kcidev.subcommands.results.options import (
1718
builds_and_tests_options,
1819
common_options,
1920
results_display_options,
2021
single_build_and_test_options,
2122
)
22-
from subcommands.results.parser import (
23+
from kcidev.subcommands.results.parser import (
2324
cmd_builds,
2425
cmd_list_trees,
2526
cmd_single_build,

kcidev/subcommands/results/hardware.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
import click
2-
from libs.dashboard import (
2+
3+
from kcidev.libs.dashboard import (
34
dashboard_fetch_hardware_list,
45
dashboard_fetch_hardware_summary,
56
)
6-
from subcommands.results.options import results_display_options
7-
from subcommands.results.parser import cmd_hardware_list, cmd_summary
7+
from kcidev.subcommands.results.options import results_display_options
8+
from kcidev.subcommands.results.parser import cmd_hardware_list, cmd_summary
89

910

1011
@click.group(chain=True, help="Get hardware related information from the dashboard")

kcidev/subcommands/results/parser.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33

44
import requests
55
import yaml
6-
from libs.dashboard import dashboard_fetch_tree_list
7-
from libs.files import download_logs_to_file
86

97
from kcidev.libs.common import *
8+
from kcidev.libs.dashboard import dashboard_fetch_tree_list
9+
from kcidev.libs.files import download_logs_to_file
1010

1111

1212
def print_summary(type, n_pass, n_fail, n_inconclusive):

0 commit comments

Comments
 (0)