Skip to content

Commit

Permalink
Change quotations
Browse files Browse the repository at this point in the history
  • Loading branch information
battistowx committed Mar 14, 2024
1 parent 97c0925 commit 080ccb4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions earthaccess/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 080ccb4

Please sign in to comment.