From 0d7f580ef9a27735707dabd480b2e016eaba42a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Jastrz=C4=99bski?= Date: Tue, 22 Oct 2019 22:13:03 +0200 Subject: [PATCH] Ignore links during import --- CB/Core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CB/Core.py b/CB/Core.py index 9a7c043..56a61e6 100644 --- a/CB/Core.py +++ b/CB/Core.py @@ -389,7 +389,7 @@ def detect_addons(self): partial_hit_raw = [] miss = [] for directory in addon_dirs: - if not os.path.isdir(self.path / directory / '.git'): + if not os.path.isdir(self.path / directory / '.git') and not os.path.islink(self.path / directory): if directory in self.cfDirs: if len(self.cfDirs[directory]) > 1: partial_hit_raw.append(self.cfDirs[directory])