Skip to content

Commit

Permalink
musl cannot run this natively. disable if running on musl based system.
Browse files Browse the repository at this point in the history
resolves #13
  • Loading branch information
GloriousEggroll committed Feb 27, 2024
1 parent 125fb68 commit 551556a
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions ULWGL/ulwgl_run.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,15 @@
from ulwgl_log import log, console_handler, debug_formatter
from ulwgl_util import UnixUser

def is_musl_system() -> bool:
"""Check if the system uses musl libc."""
# Check for the presence of musl-specific paths in LD_LIBRARY_PATH
return 'musl' in os.environ.get('LD_LIBRARY_PATH', '')

if is_musl_system():
print("This script is not designed to run on musl-based systems.")
sys.exit(1)

verbs: Set[str] = {
"waitforexitandrun",
"run",
Expand Down

0 comments on commit 551556a

Please sign in to comment.