diff --git a/pygeoweaver/jdk_utils.py b/pygeoweaver/jdk_utils.py index 9a4c8a4..8b355f4 100644 --- a/pygeoweaver/jdk_utils.py +++ b/pygeoweaver/jdk_utils.py @@ -160,7 +160,8 @@ def set_jdk_env_vars_for_linux_mac(jdk_install_dir): def set_jdk_env_vars(jdk_install_dir): - if platform.system == "Windows": + print(f"Setting environment variables for {platform.system()}") + if platform.system() == "Windows": set_jdk_env_vars_for_windows(jdk_install_dir) else: set_jdk_env_vars_for_linux_mac(jdk_install_dir) diff --git a/pygeoweaver/utils.py b/pygeoweaver/utils.py index ccfa0c4..40f24aa 100644 --- a/pygeoweaver/utils.py +++ b/pygeoweaver/utils.py @@ -13,7 +13,10 @@ def get_home_dir(): """ Get the user's home directory. """ - return os.path.expanduser("~") + if platform.system() == "Windows": + return os.path.expandvars("%USERPROFILE%") + else: + return os.path.expanduser("~") def get_root_dir(): diff --git a/pyproject.toml b/pyproject.toml index 26cd6f8..9242609 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "pygeoweaver" -version = "0.9.5" +version = "0.9.6" authors = [{ name="Geoweaver team", email="geoweaver.app@gmail.com" }] description = "This is a wrapper package of the Geoweaver app." readme = "README.md"