12 lines
269 B
Python
12 lines
269 B
Python
import subprocess
|
|
import os
|
|
|
|
PACKIE_EXEC = os.getenv("PACKIE", "packie")
|
|
|
|
def host_arch() -> str:
|
|
result = subprocess.run(
|
|
[PACKIE_EXEC, "print", "profile.host_arch"],
|
|
check=True, capture_output=True,
|
|
)
|
|
return result.stdout.decode().strip()
|