[check] Add

Add check 64bit os and python
This commit is contained in:
Alexander Trofimov
2020-10-09 09:45:12 +03:00
parent 7b925419e6
commit 5788b5e0e9

View File

@ -1,6 +1,7 @@
#!/usr/bin/env python
import platform
import struct
import glob
import shutil
import os
@ -27,6 +28,12 @@ def host_platform():
return "mac"
return ret
def is_os_64bit():
return platform.machine().endswith('64')
def is_python_64bit():
return (struct.calcsize("P") == 8)
def get_path(path):
if "windows" == host_platform():
return path.replace("/", "\\")