From c8864f915e5d910056d20ae0433d7affa983ba89 Mon Sep 17 00:00:00 2001 From: Spencer Brown Date: Tue, 5 Sep 2023 17:39:08 +1000 Subject: [PATCH] Simplify this --- transforms/vactubes/__init__.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/transforms/vactubes/__init__.py b/transforms/vactubes/__init__.py index c1f2b1f7..3b80c8cb 100644 --- a/transforms/vactubes/__init__.py +++ b/transforms/vactubes/__init__.py @@ -2,7 +2,7 @@ import subprocess from collections import defaultdict import sys -from pathlib import Path, PurePosixPath +from pathlib import Path from tempfile import TemporaryDirectory from typing import Tuple, Dict, List, Iterable, Optional import math @@ -231,7 +231,7 @@ async def vactube_transform(ctx: Context) -> None: mesh.export(mesh_file) with open(temp_dir + '/prop.qc', 'w') as qc_file: - qc_file.write(QC_TEMPLATE.format(path=PurePosixPath(anim_mdl_name))) + qc_file.write(QC_TEMPLATE.format(path=anim_mdl_name.as_posix())) for i, anim in enumerate(all_anims): anim.name = anim_name = f'anim_{i:03x}' @@ -275,7 +275,7 @@ async def vactube_transform(ctx: Context) -> None: targetname='_vactube_temp_mover', angles='0 270 0', origin='-16384 0 1024', - model=str('models' / PurePosixPath(anim_mdl_name)), + model=Path('models', anim_mdl_name).as_posix(), rendermode=10, solid=0, spawnflags=64 | 256, # Use Hitboxes for Renderbox, collision disabled.