From 412f11276aa5e50e6cb4222ae486191bed99d0aa Mon Sep 17 00:00:00 2001 From: Kelly Brazil Date: Mon, 12 Feb 2024 16:18:52 -0800 Subject: [PATCH] fix sys.path update --- jc/parsers/plist.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/jc/parsers/plist.py b/jc/parsers/plist.py index 015c0cff6..f7cd55142 100644 --- a/jc/parsers/plist.py +++ b/jc/parsers/plist.py @@ -48,9 +48,7 @@ # ugly hack because I accidentally shadowed the xml module from the # standard library with the xml parser. :( -for index, item in enumerate(sys.path.copy()): - if 'jc/jc/parsers' in item or '': - del sys.path[index] +sys.path = [x for x in sys.path if 'jc/jc/parsers' not in x] from typing import Dict, Union import plistlib