The Solaris platform is reported as "sunos<N>", e.g.:

$ python -c 'import sys; print sys.platform'
sunos5
This commit is contained in:
Matt Good
2012-05-15 10:02:07 -07:00
parent 35abcffc42
commit 5e93c5d687
+1 -1
View File
@@ -74,7 +74,7 @@ windows = 'win32' in str(sys.platform).lower()
linux = ('linux' in str(sys.platform).lower())
osx = ('darwin' in str(sys.platform).lower())
hpux = ('hpux' in str(sys.platform).lower()) # Complete guess.
solaris = ('solaris' in str(sys.platform).lower()) # Complete guess.
solaris = ('sunos' in str(sys.platform).lower()) # Complete guess.
# ---------