diff --git a/asahi_firmware/wifi.py b/asahi_firmware/wifi.py index 346965c..704da59 100644 --- a/asahi_firmware/wifi.py +++ b/asahi_firmware/wifi.py @@ -45,7 +45,7 @@ def load(self, source_path): dirnames.remove("perf") if "assert" in dirnames: dirnames.remove("assert") - subpath = dirpath.lstrip(source_path) + subpath = os.path.relpath(dirpath, source_path) for name in sorted(filenames): if not any(name.endswith("." + i) for i in self.EXTMAP): continue