From 03d9c6a2218e809bb35e810151cd822b183e460c Mon Sep 17 00:00:00 2001 From: Agent X <44549182+AgentXLP@users.noreply.github.com> Date: Mon, 8 Jul 2024 11:53:04 -0400 Subject: [PATCH] Fix convert_skybox.py on Linux --- tools/convert_skybox.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/convert_skybox.py b/tools/convert_skybox.py index 5eab32be..92427817 100644 --- a/tools/convert_skybox.py +++ b/tools/convert_skybox.py @@ -44,9 +44,10 @@ if not os.path.exists(out_dir): for i in range(tile_count): x_t = i % 8 y_t = i // 8 + separator = "\\" if os.name == "nt" else "/" in_img.crop(( img_width * x_t // 8, img_height * y_t // 8, int(img_width * x_t // 8 + img_width * tile_len_ratio), int(img_height * y_t // 8 + img_height * tile_len_ratio) - )).save(f"{out_dir}\\{os.path.basename(in_fn_id).split('.')[0]}.{f'{i:02}'}.rgba16.png", "PNG", optimize=True) + )).save(f"{out_dir}{separator}{os.path.basename(in_fn_id).split('.')[0]}.{f'{i:02}'}.rgba16.png", "PNG", optimize=True)