mirror of
https://github.com/genebean/dots.git
synced 2026-03-27 09:27:44 -04:00
Round 1 of files
This commit is contained in:
parent
a4bc5977cf
commit
0673e01c0a
12 changed files with 187 additions and 0 deletions
16
bin/dots.py
Normal file
16
bin/dots.py
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
import platform
|
||||
|
||||
my_platform=platform.platform().lower()
|
||||
if 'darwin' in my_platform:
|
||||
mac_version=platform.mac_ver()[0].split('.')
|
||||
if int(mac_version[0]) == 10 and int(mac_version[1]) >= 12:
|
||||
print("It seems you are on macOS")
|
||||
elif int(mac_version[0]) == 10 and int(mac_version[1]) < 12:
|
||||
print("It seems you are on OS X")
|
||||
else:
|
||||
print("What tha... you're Apple is pre-OS X (" + platform.mac_ver()[0] + " to be exact)" )
|
||||
elif 'linux' in my_platform:
|
||||
print("It seems you are on Linux")
|
||||
else:
|
||||
print("Not sure what OS you are on but here's what I see: " + my_platform)
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue