From ecb56b264c235ccb35474ac1a3b85aff1119fc96 Mon Sep 17 00:00:00 2001 From: Antoine Martin Date: Sat, 10 Feb 2024 22:26:01 +0700 Subject: [PATCH] try 'yuicompressor' command directly if module is not found --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 66fb7a42..c25369c5 100755 --- a/setup.py +++ b/setup.py @@ -316,7 +316,7 @@ def install_html5(root="/", install_dir="/usr/share/xpra/www/", config_dir="/etc jar = yuicompressor.get_jar_filename() java_cmd = os.environ.get("JAVA", "java") minify_cmd = [java_cmd, "-jar", jar] - except OSError: + except (OSError, ImportError): minify_cmd = ["yuicompressor"] minify_cmd += [ fsrc,