Compare commits

...

1 Commits

Author SHA1 Message Date
William Goodspeed 8fa8748c54 Fix `Texture_Converter.py' crashing on MichaelSoft Binbows
In the previous code, `os.environ["HOME"]' isn't set by Binbows systems.
The fix changes the code to get reliable home directory from pathlib.
2024-08-22 21:49:37 +00:00
1 changed files with 2 additions and 1 deletions

View File

@ -1,4 +1,5 @@
import os
import pathlib
import platform
def get_minetest_directory():
@ -24,7 +25,7 @@ def get_minetest_directory():
SUPPORTED_MINECRAFT_VERSION = "1.20"
# Helper vars
home = os.environ["HOME"]
home = pathlib.Path.home()
mineclone2_path = os.path.join(get_minetest_directory(),"games","mineclone2")
working_dir = os.getcwd()
appname = "Texture_Converter.py"