|
10 | 10 |
|
11 | 11 | import pycompiler_ark.Core.deps_analyser.analyser as deps_analyser |
12 | 12 | import pycompiler_ark.Core.SystemDepsManager as sys_deps |
| 13 | + |
13 | 14 | from ...Ui import output as output |
14 | 15 | from ..globals import WORKSPACE_CONFIG_DIRNAME |
15 | 16 |
|
@@ -455,7 +456,7 @@ def _done(code, _status): |
455 | 456 | def ensure_tools_installed(self, venv_root: str, tools: list[str]) -> None: |
456 | 457 | """Asynchronously check/install the provided tools list with progress dialog.""" |
457 | 458 | try: |
458 | | - from pycompiler_ark.Core.Compiler.utils import check_internet_connection |
| 459 | + from ..Compiler.utils import check_internet_connection |
459 | 460 |
|
460 | 461 | if not check_internet_connection(): |
461 | 462 | output.error( |
@@ -523,7 +524,7 @@ def ensure_tools_installed(self, venv_root: str, tools: list[str]) -> None: |
523 | 524 | def ensure_tools_installed_system(self, tools: list[str]) -> None: |
524 | 525 | """Asynchronously check/install tools in system Python using pip.""" |
525 | 526 | try: |
526 | | - from pycompiler_ark.Core.Compiler.utils import check_internet_connection |
| 527 | + from ..Compiler.utils import check_internet_connection |
527 | 528 |
|
528 | 529 | if not check_internet_connection(): |
529 | 530 | output.error( |
@@ -1052,7 +1053,7 @@ def _on_venv_pkg_checked(self, process, code, status, pkg): |
1052 | 1053 | ) |
1053 | 1054 | self._check_next_venv_pkg() |
1054 | 1055 | else: |
1055 | | - from pycompiler_ark.Core.Compiler.utils import check_internet_connection |
| 1056 | + from ..Compiler.utils import check_internet_connection |
1056 | 1057 |
|
1057 | 1058 | if not check_internet_connection(): |
1058 | 1059 | output.error( |
@@ -1240,7 +1241,7 @@ def _on_timeout(): |
1240 | 1241 | output.warn( |
1241 | 1242 | f"Timeout exceeded for {label} ({timeout_ms} ms). Killing process..." |
1242 | 1243 | ) |
1243 | | - from pycompiler_ark.Core.process_killer import ( |
| 1244 | + from ..process_killer import ( |
1244 | 1245 | kill_process_tree, |
1245 | 1246 | ) |
1246 | 1247 |
|
@@ -1830,7 +1831,7 @@ def _start_requirements_install( |
1830 | 1831 | use_system_python: bool = False, |
1831 | 1832 | ): |
1832 | 1833 | """Start the related asynchronous operation.""" |
1833 | | - from pycompiler_ark.Core.Compiler.utils import check_internet_connection |
| 1834 | + from ..Compiler.utils import check_internet_connection |
1834 | 1835 |
|
1835 | 1836 | if not check_internet_connection(): |
1836 | 1837 | output.error( |
@@ -2089,7 +2090,7 @@ def terminate_tasks(self): |
2089 | 2090 | proc = getattr(self, attr, None) |
2090 | 2091 | try: |
2091 | 2092 | if proc: |
2092 | | - from pycompiler_ark.Core.process_killer import kill_process_tree |
| 2093 | + from ..process_killer import kill_process_tree |
2093 | 2094 |
|
2094 | 2095 | kill_process_tree(proc.processId()) |
2095 | 2096 | except Exception: |
|
0 commit comments