From fc5569ab83935f9d20f3127e0dc0f846623c9b9c Mon Sep 17 00:00:00 2001 From: poikilos <7557867+poikilos@users.noreply.github.com> Date: Fri, 9 Jun 2017 20:30:00 +0000 Subject: [PATCH] prefer HOME as suggested by developers in my fork of minetestmapper --- minetestinfo.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/minetestinfo.py b/minetestinfo.py index fc1960a..7054b34 100644 --- a/minetestinfo.py +++ b/minetestinfo.py @@ -311,10 +311,10 @@ def init_minetestinfo(): minetestinfo.prepare_var("www_minetest_path", default_www_minetest_path, "your web server directory (or other folder where minetest website features and data should be placed)") - if 'USERPROFILE' in os.environ: # if os_name=="windows": - profile_path = os.environ['USERPROFILE'] - else: + if 'HOME' in os.environ: # if os_name=="windows": profile_path = os.environ['HOME'] + else: + profile_path = os.environ['USERPROFILE'] default_profile_minetest_path = os.path.join(profile_path,".minetest") if os.path.isdir("C:\\games\\Minetest"): # if (os_name=="windows"):