From 76bab40aa2d7d6589c08d66b911d7d853fe874ef Mon Sep 17 00:00:00 2001 From: CounterPillow Date: Sat, 16 Nov 2013 15:07:51 +0100 Subject: [PATCH] Possibly fixed crash when HOME is undefined When HOME was undefined on Linux, the code would try calling os.listdir(None) which will obviously fail. This is a workaround. A proper fix would be to rewrite the code to check for each operating system, not a combination of operating systems, environment variables and the current air humidity in London. --- overviewer_core/textures.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/overviewer_core/textures.py b/overviewer_core/textures.py index baf3592..d3e529f 100644 --- a/overviewer_core/textures.py +++ b/overviewer_core/textures.py @@ -217,7 +217,7 @@ class Textures(object): # Find an installed minecraft client jar and look in it for the texture # file we need. - versiondir = None + versiondir = "" if "APPDATA" in os.environ and sys.platform.startswith("win"): versiondir = os.path.join(os.environ['APPDATA'], ".minecraft", "versions") elif "HOME" in os.environ: