mirror of
https://github.com/ONLYOFFICE/build_tools.git
synced 2026-04-07 14:06:31 +08:00
[check] Add
Add check 64bit os and python
This commit is contained in:
@ -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("/", "\\")
|
||||
|
||||
Reference in New Issue
Block a user