]> granicus.if.org Git - esp-idf/commitdiff
fix spiffsgen.py wrong path delimiter on windows
authorV.Dudnik <dudnik.v@udtech.co>
Sat, 4 May 2019 08:41:53 +0000 (11:41 +0300)
committerRenz Christian Bagaporo <renz@espressif.com>
Sun, 5 May 2019 09:50:15 +0000 (17:50 +0800)
components/spiffs/spiffsgen.py

index f3e81932baf7a52edf2b10b9820a6f884be00169..de160294d3c3a95a1cc002939362d5167c694e82 100755 (executable)
@@ -516,7 +516,7 @@ def main():
         for root, dirs, files in os.walk(args.base_dir):
             for f in files:
                 full_path = os.path.join(root, f)
-                spiffs.create_file("/" + os.path.relpath(full_path, args.base_dir), full_path)
+                spiffs.create_file("/" + os.path.relpath(full_path, args.base_dir).replace("\\", "/"), full_path)
 
         image = spiffs.to_binary()