查询文件位置路径

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