Moved import due to circular imports.
This commit is contained in:
parent
0d9519a729
commit
2f6a71756a
|
|
@ -5,7 +5,6 @@ from subprocess import Popen, STDOUT, PIPE, check_output
|
||||||
from select import epoll, EPOLLIN, EPOLLHUP
|
from select import epoll, EPOLLIN, EPOLLHUP
|
||||||
from .exceptions import *
|
from .exceptions import *
|
||||||
from .output import log, LOG_LEVELS
|
from .output import log, LOG_LEVELS
|
||||||
from .user_interaction import get_terminal_width
|
|
||||||
|
|
||||||
def gen_uid(entropy_length=256):
|
def gen_uid(entropy_length=256):
|
||||||
return hashlib.sha512(os.urandom(entropy_length)).hexdigest()
|
return hashlib.sha512(os.urandom(entropy_length)).hexdigest()
|
||||||
|
|
@ -162,6 +161,8 @@ class sys_command():#Thread):
|
||||||
|
|
||||||
def peak(self, output):
|
def peak(self, output):
|
||||||
if self.peak_output:
|
if self.peak_output:
|
||||||
|
from .user_interaction import get_terminal_width
|
||||||
|
|
||||||
# Move back to the beginning of the terminal
|
# Move back to the beginning of the terminal
|
||||||
sys.stdout.flush()
|
sys.stdout.flush()
|
||||||
sys.stdout.write("\033[%dG" % 0)
|
sys.stdout.write("\033[%dG" % 0)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue