| Server IP : 123.56.80.60 / Your IP : 216.73.216.78 Web Server : Apache/2.4.54 (Win32) OpenSSL/1.1.1s PHP/7.4.33 mod_fcgid/2.3.10-dev System : Windows NT iZhx3sob14hnz7Z 10.0 build 14393 (Windows Server 2016) i586 User : SYSTEM ( 0) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/Program Files (x86)/Alibaba/Aegis/PythonLoader/third_party/aegis_checker/common/ |
Upload File : |
# -*- coding: utf-8 -*-
# define all path for aegis checker
import os
from platform_info import is_windows
def get_main_dir():
current_dir_path = os.path.dirname(os.path.abspath(__file__))
return os.path.dirname(current_dir_path)
def get_log_dir():
return os.path.join(get_main_dir(), "log")
def get_tool_dir():
return os.path.join(get_main_dir(), "tool")
def get_aegis_log_dir_in_checker():
"""
get dir to store aegis client log
warning : this is not to get aegis client log dir path
:return:
"""
log_path = get_log_dir()
return os.path.join(log_path, "aegis")
def get_aegis_root_folder():
if is_windows():
return r"C:\Program Files (x86)\Alibaba\Aegis"
else:
return "/usr/local/aegis"
def get_aegis_client_dir(aegis_client_ver):
return os.path.join(get_aegis_root_folder(), "aegis_client", aegis_client_ver)
def get_aegis_update_dir():
return os.path.join(get_aegis_root_folder(), "aegis_update")
def get_aegis_globalcfg_dir():
return os.path.join(get_aegis_root_folder(), "globalcfg")