Skip to content

Commit

Permalink
Ignore files during import
Browse files Browse the repository at this point in the history
  • Loading branch information
AcidWeb committed Sep 13, 2020
1 parent 270677a commit 9d0e16d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion CB/Core.py
Original file line number Diff line number Diff line change
Expand Up @@ -542,7 +542,8 @@ def detect_addons(self):
partial_hit_raw = []
miss = []
for directory in addon_dirs:
if not os.path.isdir(self.path / directory / '.git') and not os.path.islink(self.path / directory):
if os.path.isdir(self.path / directory) and not os.path.islink(self.path / directory) and \
not os.path.isdir(self.path / directory / '.git'):
if directory in self.cfDirs:
if len(self.cfDirs[directory]) > 1:
partial_hit_raw.append(self.cfDirs[directory])
Expand Down

0 comments on commit 9d0e16d

Please sign in to comment.