From 867ea68d5ab7c8cdd535ffa3179f4bc0ae983750 Mon Sep 17 00:00:00 2001 From: "V.Dudnik" Date: Sat, 4 May 2019 11:41:53 +0300 Subject: [PATCH] fix spiffsgen.py wrong path delimiter on windows --- components/spiffs/spiffsgen.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/spiffs/spiffsgen.py b/components/spiffs/spiffsgen.py index f3e81932ba..de160294d3 100755 --- a/components/spiffs/spiffsgen.py +++ b/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()