11 lines
214 B
Python
11 lines
214 B
Python
import os
|
|
import sys
|
|
|
|
# 获取当前脚本所在目录的绝对路径
|
|
current_dir = os.path.dirname(os.path.abspath(__file__))
|
|
sys.path.append(current_dir)
|
|
|
|
import core.config as config
|
|
|
|
print(config.get_device())
|