mirror of
https://github.com/RockChinQ/QChatGPT.git
synced 2024-11-15 19:22:24 +08:00
12 lines
202 B
Python
12 lines
202 B
Python
import os
|
|
import sys
|
|
|
|
|
|
def get_platform() -> str:
|
|
"""获取当前平台"""
|
|
# 检查是不是在 docker 里
|
|
if os.path.exists('/.dockerenv'):
|
|
return 'docker'
|
|
|
|
return sys.platform
|