DDNS icon indicating copy to clipboard operation
DDNS copied to clipboard

FileNotFoundError: [Errno 2] No such file or directory: 'config.json'

Open wphu opened this issue 5 years ago • 2 comments

在顶级目录运行,出现题目中的错误,在src目录正常运行。请修改一些说明。

wphu avatar Sep 05 '19 11:09 wphu

我改成这样了

def getConfigJson(): cur_path = os.path.split(file)[0] + '/config.json' with open(cur_path) as file: jsonStr = json.loads(file.read()) return jsonStr

Joii-Han-CO avatar Oct 24 '19 04:10 Joii-Han-CO

需要安装两个SDK库,一个是阿里云核心SDK库,一个是阿里云域名SDK库; 阿里云核心SDK库:pip install aliyun-python-sdk-core 阿里云域名SDK库:pip install aliyun-python-sdk-domain 装了再运行就 OK 了

oh1h0ney avatar Jul 27 '20 06:07 oh1h0ney