summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--source-builder/sb/path.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/source-builder/sb/path.py b/source-builder/sb/path.py
index 679436c..b86df0d 100644
--- a/source-builder/sb/path.py
+++ b/source-builder/sb/path.py
@@ -143,7 +143,7 @@ def iswritable(path):
def ispathwritable(path):
path = shell(path)
- while len(path) != 0:
+ while len(path) > 1:
if exists(path):
return iswritable(path)
path = dirname(path)