Skip to content

Commit

Permalink
More Windows fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
enzok committed May 31, 2024
1 parent 06a04b9 commit 2072440
Show file tree
Hide file tree
Showing 8 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
*.a
*.o
*.dll
*.exe
*.so
*.pyc
Expand Down
Binary file added sflock/data/win32/libmagic.dll
Binary file not shown.
Binary file modified sflock/data/win32/magic.mgc
Binary file not shown.
Binary file removed sflock/data/win32/magic1.dll
Binary file not shown.
Binary file added sflock/data/win64/libmagic.dll
Binary file not shown.
Binary file modified sflock/data/win64/magic.mgc
Binary file not shown.
Binary file removed sflock/data/win64/magic1.dll
Binary file not shown.
4 changes: 2 additions & 2 deletions sflock/misc.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ def import_plugins(dirpath, module_prefix, namespace, class_):

def data_file(*path):
"""Return the path for the filepath of an embedded file."""
dirpath = sflock.__path__[0].encode()
return os.path.abspath(os.path.join(dirpath, b"data", *path))
dirpath = sflock.__path__[0]
return os.path.abspath(os.path.join(dirpath, "data", *path))


def make_list(obj):
Expand Down

0 comments on commit 2072440

Please sign in to comment.