From 782d4501cd27cbcc62a71efbc54ea5eb4dd12f09 Mon Sep 17 00:00:00 2001 From: Sergei Trofimov Date: Thu, 14 May 2015 14:34:41 +0100 Subject: [PATCH] revent: fix resource resolution when dependency location does not exist. --- wlauto/resource_getters/standard.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/wlauto/resource_getters/standard.py b/wlauto/resource_getters/standard.py index 4de6d753..547343aa 100644 --- a/wlauto/resource_getters/standard.py +++ b/wlauto/resource_getters/standard.py @@ -320,9 +320,10 @@ class RemoteFilerGetter(ResourceGetter): for candidate in os.listdir(alternate_location): if candidate.lower() == filename.lower(): return os.path.join(alternate_location, candidate) - for candidate in os.listdir(location): - if candidate.lower() == filename.lower(): - return os.path.join(location, candidate) + if os.path.isdir(location): + for candidate in os.listdir(location): + if candidate.lower() == filename.lower(): + return os.path.join(location, candidate) else: raise ValueError('Unexpected resource type: {}'.format(resource.name))