Explorar o código

fix spiffsgen.py wrong path delimiter on windows

V.Dudnik %!s(int64=6) %!d(string=hai) anos
pai
achega
867ea68d5a
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      components/spiffs/spiffsgen.py

+ 1 - 1
components/spiffs/spiffsgen.py

@@ -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()