summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pym/portage/env/loaders.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/pym/portage/env/loaders.py b/pym/portage/env/loaders.py
index 1d0ca01aa..61bb69126 100644
--- a/pym/portage/env/loaders.py
+++ b/pym/portage/env/loaders.py
@@ -36,8 +36,9 @@ def RecursiveFileLoader(filename):
@rtype: list
@returns: List of files to process
"""
-
- if os.path.isdir(filename):
+ if not os.path.exists(filename):
+ return
+ elif os.path.isdir(filename):
for root, dirs, files in os.walk(filename):
if 'CVS' in dirs:
dirs.remove('CVS')