From 7295857143f1a751cd5bb1076b1a1bc043c94bce Mon Sep 17 00:00:00 2001 From: antipatico Date: Sat, 27 Apr 2024 17:50:14 +0200 Subject: [PATCH] v0.3.1 Fixed is_java_installed() not working on Windows platform --- balatromobile/__version__.py | 2 +- balatromobile/utils.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/balatromobile/__version__.py b/balatromobile/__version__.py index 4e3f3d3..5ce1506 100644 --- a/balatromobile/__version__.py +++ b/balatromobile/__version__.py @@ -1 +1 @@ -__version__="0.3.0" \ No newline at end of file +__version__="0.3.1" \ No newline at end of file diff --git a/balatromobile/utils.py b/balatromobile/utils.py index 3b03842..355cec1 100644 --- a/balatromobile/utils.py +++ b/balatromobile/utils.py @@ -13,7 +13,7 @@ def run_silent(what: list[str], **kwargs): def is_java_installed() -> bool: try: - run_silent(["java", "--version"]) + run_silent(["java", "-version"]) return True except FileNotFoundError: return False