diff --git a/tools/RAiDER/models/credentials.py b/tools/RAiDER/models/credentials.py index 17c2c9e3..e6c238cc 100644 --- a/tools/RAiDER/models/credentials.py +++ b/tools/RAiDER/models/credentials.py @@ -151,7 +151,7 @@ def check_api(model: str, # one that belongs to this URL. import netrc rc_path.touch() - netrc_credentials = netrc.netrc(rc_path.name) + netrc_credentials = netrc.netrc(str(rc_path)) netrc_credentials.hosts[url] = (uid, '', key) rc_path.write_text(str(netrc_credentials)) rc_path.chmod(0o000600)