diff --git a/earthaccess/auth.py b/earthaccess/auth.py index 58ed9bc6..d146cb48 100644 --- a/earthaccess/auth.py +++ b/earthaccess/auth.py @@ -372,14 +372,14 @@ def _persist_user_credentials(self, username: str, password: str) -> bool: my_netrc = Netrc(str(netrc_path)) my_netrc["urs.earthdata.nasa.gov"] = {"login": username, "password": password} my_netrc.save() - netrc_file = Path.home() / '.netrc' + netrc_file = Path.home() / ".netrc" # Create and write .urs_cookies file - urs_cookies_file = Path.home() / '.urs_cookies' - urs_cookies_file.write_text('') + urs_cookies_file = Path.home() / ".urs_cookies" + urs_cookies_file.write_text("") # Create and write to .dodsrc file - dodsrc_file = Path.home() / '.dodsrc' + dodsrc_file = Path.home() / ".dodsrc" dodsrc_contents = f"HTTP.COOKIEJAR={urs_cookies_file}\nHTTP.NETRC={netrc_file}" dodsrc_file.write_text(dodsrc_contents)