remove redundant statement for makedir config file

pull/309/head
dj4t9n 2021-05-23 15:05:43 +05:30
parent c0d54db2a0
commit 72ae561cf1
1 changed files with 1 additions and 3 deletions

View File

@ -243,9 +243,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(f'{CONFIG_DIR}/themes')
os.makedirs(CONFIG_DIR)
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)