2013-04-18 01:46:47 +02:00
|
|
|
#!/usr/bin/python
|
|
|
|
import platform
|
2013-07-10 09:21:53 +02:00
|
|
|
import sys
|
2013-04-21 22:17:47 +02:00
|
|
|
import lutinDebug as debug
|
2013-04-18 01:46:47 +02:00
|
|
|
|
|
|
|
# print os.name # ==> 'posix'
|
|
|
|
if platform.system() == "Linux":
|
|
|
|
OS = "Linux"
|
|
|
|
elif platform.system() == "Windows":
|
|
|
|
OS = "Windows"
|
|
|
|
elif platform.system() == "Darwin":
|
2013-04-25 00:55:15 +02:00
|
|
|
OS = "MacOs"
|
2013-04-18 01:46:47 +02:00
|
|
|
else:
|
|
|
|
debug.error("Unknow the Host OS ... '" + platform.system() + "'")
|
|
|
|
|
|
|
|
debug.debug(" host.OS = " + OS)
|
|
|
|
|
2013-07-10 09:21:53 +02:00
|
|
|
|
|
|
|
OS64BITS = sys.maxsize > 2**32
|
|
|
|
OS32BITS = OS64BITS==False
|