Skip to content

Commit 4c0773c

Browse files
committed
Move running_from_iso import to module level
No circular dep, simpler than per-method local imports.
1 parent 0cf2541 commit 4c0773c

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

archinstall/lib/translationhandler.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
from archinstall.lib.command import SysCommand
1111
from archinstall.lib.exceptions import SysCallError
1212
from archinstall.lib.output import debug
13+
from archinstall.lib.utils.util import running_from_iso
1314

1415

1516
@dataclass
@@ -65,8 +66,6 @@ def active_font(self) -> str | None:
6566

6667
def _set_font(self, font_name: str | None) -> bool:
6768
"""Set the console font via setfont. Only runs on ISO. Returns True on success."""
68-
from archinstall.lib.utils.util import running_from_iso
69-
7069
if not running_from_iso():
7170
return False
7271

@@ -80,8 +79,6 @@ def _set_font(self, font_name: str | None) -> bool:
8079

8180
def save_console_font(self) -> None:
8281
"""Save the current console font (with unicode map) and console map to temp files."""
83-
from archinstall.lib.utils.util import running_from_iso
84-
8582
if not running_from_iso():
8683
return
8784

0 commit comments

Comments
 (0)