Skip to content
Open
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
5 changes: 4 additions & 1 deletion transforms/vactubes/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,8 @@ async def vactube_transform(ctx: Context) -> None:
# Ensure they're all packed.
for ext in MDL_EXTS:
try:
mdl_file = full_loc.with_suffix(ext).open('rb')
mdl_filePath = full_loc.with_suffix(ext)
mdl_file = mdl_filePath.open('rb')
except FileNotFoundError:
pass
else:
Expand All @@ -267,6 +268,8 @@ async def vactube_transform(ctx: Context) -> None:
Path('models', anim_mdl_name.with_suffix(ext)),
data=mdl_file.read(),
)
# Remove file after packing
mdl_filePath.unlink()

LOGGER.info('Setting up vactube ents...')
# Generate the shared template.
Expand Down