diff --git a/src/pygbag/html_embed.py b/src/pygbag/html_embed.py
index e623cc2..a6768d1 100644
--- a/src/pygbag/html_embed.py
+++ b/src/pygbag/html_embed.py
@@ -31,6 +31,9 @@ def fs_decode(fsname, o248):
)
for topack in packlist:
+ if isinstance(topack, Path):
+ topack = topack.as_posix()
+
if topack == "/main.py":
continue