1、在模块文件中获取该文件所在目录
py_path, py_name = os.path.split(os.path.abspath(__file__))
__default_conf = py_path + r"\conf\log.conf"
2、获取正在运行的文件所在的目录
os.getcwd()
https://blog.csdn.net/qq_41236493/article/details/115233099
1、在模块文件中获取该文件所在目录
py_path, py_name = os.path.split(os.path.abspath(__file__))
__default_conf = py_path + r"\conf\log.conf"
2、获取正在运行的文件所在的目录
os.getcwd()
https://blog.csdn.net/qq_41236493/article/details/115233099