From 69390da38fa15ba35fc8f7e7245e1ae5c7642891 Mon Sep 17 00:00:00 2001 From: Paul Sokolovsky Date: Sat, 8 Oct 2016 01:17:20 +0300 Subject: [PATCH] upip: _makedirs(): Make compatible with FatFs quirks. Don't have trailing "/" in paths. --- upip/upip.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/upip/upip.py b/upip/upip.py index 50de6c3a..ad612816 100644 --- a/upip/upip.py +++ b/upip/upip.py @@ -35,7 +35,9 @@ def _makedirs(name, mode=0o777): ret = False s = "" for c in name.rstrip("/").split("/"): - s += c + "/" + if s: + s += "/" + s += c try: os.mkdir(s) ret = True