Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bugfix base64 file decoding #22

Merged
merged 1 commit into from
May 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion assetman/compilers.py
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ def replacer(match):
logging.debug('Not inlining %s (%.2fKB)', path, os.stat(path).st_size / KB)
return match.group(0)
else:
encoded = base64.b64encode(open(path).read())
encoded = base64.b64encode(open(path, 'rb').read())
mime_type, _ = mimetypes.guess_type(path)
if not mime_type and path.endswith('.otf'):
mime_type = 'application/octet-stream'
Expand Down
5 changes: 3 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,14 @@ build-backend = "setuptools.build_meta"
[project]
name = "pyassetman"
description = "assetman assetmanager"
version = "0.3.0rc1"
version = "0.3.0rc2"
authors = [
{ name="Will McCutchen", email="[email protected]" },
]
maintainers = [
{ name="Jehiah Czebotar", email="[email protected]"},
{ name="Josh Harshman", email="[email protected]"}
{ name="Josh Harshman", email="[email protected]"},
{ name="Oscar Luu", email="[email protected]"}
]
readme = "README.md"
requires-python = ">=3.8"
Expand Down
Loading