mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-06-07 14:26:03 +00:00
feat(plugin): basic communication
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user