diff --git a/earthaccess/auth.py b/earthaccess/auth.py index bd7924f7..50b85e24 100644 --- a/earthaccess/auth.py +++ b/earthaccess/auth.py @@ -379,7 +379,7 @@ def _persist_user_credentials(self, username: str, password: str) -> bool: # Create and write to .dodsrc file dodsrc_path = Path.home() / ".dodsrc" if not dodsrc_path.exists(): - dodsrc_contents = f"HTTP.COOKIEJAR={urs_cookies_file}\nHTTP.NETRC={netrc_path}" + dodsrc_contents = f"HTTP.COOKIEJAR={urs_cookies_path}\nHTTP.NETRC={netrc_path}" dodsrc_path.write_text(dodsrc_contents)