Fix sys.path insertion to avoid duplicates

Correct the insertion of sys.path to prevent duplicates.
This commit is contained in:
Roy
2025-12-16 04:44:29 -08:00
committed by GitHub
parent 142ad46dff
commit b929fb6f69
+1 -1
View File
@@ -155,7 +155,7 @@ custom_websites = websites_str.split(', ') if websites_str else []
# Fix sys.path insertion to avoid duplicates
logged_in_home = os.environ["logged_in_home"].strip('"')
parent_folder = os.path.expanduser(f"{logged_in_home}/.config/systemd/user/Modules")
if parent_folder not in sys.path: