From f3d4c914def15a7bcb632daea6d13976c55e291d Mon Sep 17 00:00:00 2001 From: apric0ts Date: Wed, 12 Jun 2024 16:35:47 -0400 Subject: [PATCH] path joining now os agnostic --- exts/siborg.create.human/siborg/create/human/mhcaller.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/exts/siborg.create.human/siborg/create/human/mhcaller.py b/exts/siborg.create.human/siborg/create/human/mhcaller.py index dd3d496..c267f1b 100644 --- a/exts/siborg.create.human/siborg/create/human/mhcaller.py +++ b/exts/siborg.create.human/siborg/create/human/mhcaller.py @@ -1,6 +1,7 @@ from typing import TypeVar, Union import warnings import io +import os import makehuman from pathlib import Path @@ -377,7 +378,8 @@ def guess_proxy_type(cls, path : str): def set_tpose(cls): """Sets the human to the T-Pose""" # Load the T-Pose BVH file - filepath = data_path('poses\\tpose.bvh') + pose_path = os.path.join("poses", "tpose.bvh") + filepath = data_path(pose_path) bvh_file = bvh.load(filepath, convertFromZUp="auto") # Create an animation track from the BVH file anim = bvh_file.createAnimationTrack(cls.human.getBaseSkeleton())