Skip to content

Commit

Permalink
try 'yuicompressor' command directly if module is not found
Browse files Browse the repository at this point in the history
  • Loading branch information
totaam committed Feb 10, 2024
1 parent 2bdca6c commit ecb56b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit ecb56b2

Please sign in to comment.