feat(plugin): basic communication

This commit is contained in:
Junyan Qin
2025-06-14 17:27:21 +08:00
parent 2d06f1cadb
commit 6f2fd72af6
4 changed files with 150 additions and 86 deletions

View File

@@ -5,7 +5,10 @@ import sys
def get_platform() -> str:
"""获取当前平台"""
# 检查是不是在 docker 里
if os.path.exists('/.dockerenv'):
DOCKER_ENV = os.environ.get('DOCKER_ENV', 'false')
if os.path.exists('/.dockerenv') or DOCKER_ENV == 'true':
return 'docker'
return sys.platform