summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--source-builder/sb/path.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/source-builder/sb/path.py b/source-builder/sb/path.py
index 5f48d26..e3be0ce 100644
--- a/source-builder/sb/path.py
+++ b/source-builder/sb/path.py
@@ -96,7 +96,9 @@ def listdir(path):
def exists(paths):
def _exists(p):
- return os.path.basename(p) in listdir(dirname(p))
+ if '/' not in host(p):
+ p = shell(join(os.getcwd(), host(p)))
+ return basename(p) in ['.'] + listdir(dirname(p))
if type(paths) == list:
results = []