Skip to content

Commit

Permalink
Fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
battistowx authored Mar 28, 2024
1 parent c251ca6 commit 9e767bb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions earthaccess/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -379,16 +379,16 @@ 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_path}\nHTTP.NETRC={netrc_path}"
dodsrc_contents = (
f"HTTP.COOKIEJAR={urs_cookies_path}\nHTTP.NETRC={netrc_path}"
)
dodsrc_path.write_text(dodsrc_contents)


if platform.system() == "Windows":
local_dodsrc_path = Path.cwd() / dodsrc_path.name
if not local_dodsrc_path.exists():
shutil.copy2(dodsrc_path, local_dodsrc_path)


return True

def _get_cloud_auth_url(
Expand Down

0 comments on commit 9e767bb

Please sign in to comment.