open_log_dir()

This commit is contained in:
Abhiraj Roy (iconized)
2024-04-25 16:19:24 +05:30
committed by GitHub
parent b9c90c1809
commit db22fbb61c

View File

@@ -2181,3 +2181,13 @@ def log_package_status(self):
f.write("%s\n" % package)
break
def open_log_dir():
try:
subprocess.Popen(
["sudo", "-u", sudo_username, "xdg-open", log_dir],
shell=False,
stdout=subprocess.PIPE,
stderr=subprocess.STDOUT,
)
except Exception as e:
logger.error("Exception in open_log_dir(): %s" % e)