Closed lvreynoso closed 3 years ago
Hi @lvreynoso, thanks for pointing this out. Instead of introducing an external dependency (which would need to be added in setup.py), I'd prefer to simplify this to use something like if "ubuntu" in subprocess.run(["uname", "-a"], capture_output=True).stdout.decode(): ...
.
Good point, I didn't realize that distro
was not a builtin module. I updated the PR to just change the platform...
check with your recommended subprocess
check.
Python 3.8 removed the
platform.linux_distribution()
method used inssm.py
, causing an error when trying to use aegea on Linux. This PR adds the recommended replacement moduledistro
and uses it to check if the user is running Ubuntu, falling back to the old behavior ifdistro
was not successfully imported.