Skip to content

Commit

Permalink
print linux version, only if linux
Browse files Browse the repository at this point in the history
  • Loading branch information
igormcoelho committed May 20, 2024
1 parent 6611fd6 commit 70a3066
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion cxxbuild/cxxbuild.py
Original file line number Diff line number Diff line change
Expand Up @@ -894,8 +894,11 @@ def main():
print(" welcome to cxxbuild ")
print("======================================")
print(version())
# options: 'posix' or 'nt'
print("os: "+os.name+"; platform: "+platform.system())
print("linux: "+platform.freedesktop_os_release().get("VERSION_CODENAME"))
# options: 'Darwin', 'Windows' or 'Linux'
if platform.system() == "Linux":
print("linux: "+platform.freedesktop_os_release().get("VERSION_CODENAME"))
print("======================================")

# ASSUME '.' as root_path if nothing is passed
Expand Down

0 comments on commit 70a3066

Please sign in to comment.