Skip to content

Commit

Permalink
Merge pull request #186 from tanav-malhotra/patch-1
Browse files Browse the repository at this point in the history
Fixes error "TypeError: 'PosixPath' object is not subscriptable"
  • Loading branch information
pmp-p authored Jan 6, 2025
2 parents c97df80 + 5fd9efe commit 1d3b6c9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/pygbag/html_embed.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 1d3b6c9

Please sign in to comment.