mirror of
https://github.com/RockChinQ/QChatGPT.git
synced 2024-11-16 03:32:33 +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
|