Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archinstall/lib/general.py
diff options
context:
space:
mode:
authorAnton Hvornum <anton@hvornum.se>2021-04-04 15:08:06 +0200
committerAnton Hvornum <anton@hvornum.se>2021-04-04 15:08:06 +0200
commit2f6a71756a06b6feff3acdad3a3d8490e7504ab7 (patch)
treeb399178535b770086e01ad892eba7f3d1284a176 /archinstall/lib/general.py
parent0d9519a729c8692ddb1de65aeca904e022f89fa8 (diff)
Moved import due to circular imports.
Diffstat (limited to 'archinstall/lib/general.py')
-rw-r--r--archinstall/lib/general.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/archinstall/lib/general.py b/archinstall/lib/general.py
index 78076c15..ded2c5a3 100644
--- a/archinstall/lib/general.py
+++ b/archinstall/lib/general.py
@@ -5,7 +5,6 @@ from subprocess import Popen, STDOUT, PIPE, check_output
from select import epoll, EPOLLIN, EPOLLHUP
from .exceptions import *
from .output import log, LOG_LEVELS
-from .user_interaction import get_terminal_width
def gen_uid(entropy_length=256):
return hashlib.sha512(os.urandom(entropy_length)).hexdigest()
@@ -162,6 +161,8 @@ class sys_command():#Thread):
def peak(self, output):
if self.peak_output:
+ from .user_interaction import get_terminal_width
+
# Move back to the beginning of the terminal
sys.stdout.flush()
sys.stdout.write("\033[%dG" % 0)