I am creating a setup file for a tarball, and I need a way to determine the exact name of the system.
I tried os.name
, but it returns 'posix' regardless of whether the system is mac or linux.
Is there a way to get a more specific OS name?
I am creating a setup file for a tarball, and I need a way to determine the exact name of the system.
I tried os.name
, but it returns 'posix' regardless of whether the system is mac or linux.
Is there a way to get a more specific OS name?
Copyright © 2021 Jogjafile Inc.
Simplest way:
On Mac it outputs something like 'darwin'