You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 24, 2022. It is now read-only.
Traceback (most recent call last):
File "/home/xxxx/netease/index.py", line 159, in <module>
start()
File "/home/xxxx/netease/index.py", line 52, in start
with open('config.json', 'r', encoding='utf-8') as f:
FileNotFoundError: [Errno 2] No such file or directory: 'config.json'
小改了一下index.py
path = os.path.dirname(os.path.realpath(__file__))
config_Path = f"{path}/config.json"
def start(event={}, context={}):
with open(config_Path, 'r', encoding='utf-8') as f:
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
本地运行,直接在index.py目录下运行是没问题的,但如果这样
python3 /home/xxxx/netease/index.py
就不行了
小改了一下index.py
The text was updated successfully, but these errors were encountered: