From 5b0dc5a885db768edc264a054cd3cdc4870b8229 Mon Sep 17 00:00:00 2001 From: CROUZET Nicolas Date: Mon, 11 Apr 2022 10:15:05 +0200 Subject: [PATCH] limit the impact for users not having psutil --- src/system.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/system.py b/src/system.py index 842fb48..17a7c06 100644 --- a/src/system.py +++ b/src/system.py @@ -25,7 +25,6 @@ import os import subprocess as SP import time import tarfile -import psutil import time @@ -65,6 +64,7 @@ def show_in_webbrowser(editor, filePath, logger): :param editor str: The web browser to use. :param filePath str: The path to the file to open. ''' + import psutil # default editor is firefox if editor is None or len(editor) == 0: editor = 'firefox' -- 2.39.2