查询文件位置路径

144 阅读1分钟
path = os.path.split(os.path.realpath(__file__))[0]