Skip to content

Commit

Permalink
display distro info
Browse files Browse the repository at this point in the history
  • Loading branch information
PJDude committed Jan 27, 2024
1 parent 6c45b8e commit 858540c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/dude.py
Original file line number Diff line number Diff line change
Expand Up @@ -1366,7 +1366,7 @@ def get_about_dialog(self):
lab2_text= 'LOGS DIRECTORY : ' + LOG_DIR + '\n' + \
'SETTINGS DIRECTORY : ' + CONFIG_DIR + '\n' + \
'CACHE DIRECTORY : ' + CACHE_DIR + '\n\n' + \
'Current log file : ' + log
'Current log file : ' + log_file + '\n\n' + distro_info

#'LOGGING LEVEL : ' + log_levels[LOG_LEVEL] + '\n\n' + \

Expand Down Expand Up @@ -4882,7 +4882,8 @@ def show_homepage(self):
#dont mix device id for different hosts in portable mode
CACHE_DIR = sep.join([CACHE_DIR_DIR,node()])

log=abspath(p_args.log[0]) if p_args.log else LOG_DIR + sep + strftime('%Y_%m_%d_%H_%M_%S',localtime(time()) ) +'.txt'
log_file = strftime('%Y_%m_%d_%H_%M_%S',localtime(time()) ) +'.txt'
log=abspath(p_args.log[0]) if p_args.log else LOG_DIR + sep + log_file
#LOG_LEVEL = logging.DEBUG if p_args.debug else logging.INFO

Path(LOG_DIR).mkdir(parents=True,exist_ok=True)
Expand All @@ -4900,6 +4901,7 @@ def show_homepage(self):
distro_info=Path(path_join(DUDE_DIR,'distro.info.txt')).read_text(encoding='ASCII')
except Exception as exception_1:
l_error(exception_1)
distro_info = 'Error. No distro.info.txt file.'
else:
l_info('distro info:\n%s',distro_info)

Expand Down

0 comments on commit 858540c

Please sign in to comment.