mirror of https://github.com/aristocratos/bpytop
Removed some redundant statements
parent
472185c080
commit
a221664ee1
|
@ -244,8 +244,7 @@ log_level=$log_level
|
||||||
CONFIG_DIR: str = f'{os.path.expanduser("~")}/.config/bpytop'
|
CONFIG_DIR: str = f'{os.path.expanduser("~")}/.config/bpytop'
|
||||||
if not os.path.isdir(CONFIG_DIR):
|
if not os.path.isdir(CONFIG_DIR):
|
||||||
try:
|
try:
|
||||||
os.makedirs(CONFIG_DIR)
|
os.makedirs(f'{CONFIG_DIR}/themes')
|
||||||
os.mkdir(f'{CONFIG_DIR}/themes')
|
|
||||||
except PermissionError:
|
except PermissionError:
|
||||||
print(f'ERROR!\nNo permission to write to "{CONFIG_DIR}" directory!')
|
print(f'ERROR!\nNo permission to write to "{CONFIG_DIR}" directory!')
|
||||||
raise SystemExit(1)
|
raise SystemExit(1)
|
||||||
|
@ -5630,7 +5629,7 @@ def main():
|
||||||
#? Main loop ------------------------------------------------------------------------------------->
|
#? Main loop ------------------------------------------------------------------------------------->
|
||||||
|
|
||||||
def run():
|
def run():
|
||||||
while not False:
|
while True:
|
||||||
Term.refresh()
|
Term.refresh()
|
||||||
Timer.stamp()
|
Timer.stamp()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue