Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Internal changes. #442

Merged
merged 1 commit into from
Dec 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion python/ee/cli/eecli.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,9 @@ def _run_command(*argv):

args = parser.parse_args()
config = utils.CommandLineConfig(
args.ee_config, args.service_account_file, args.project_override
config_file=args.ee_config,
service_account_file=args.service_account_file,
project_override=args.project_override,
)

# Catch EEException errors, which wrap server-side Earth Engine
Expand Down
9 changes: 6 additions & 3 deletions python/ee/cli/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
import tempfile
import threading
import time
from typing import AnyStr, Dict, Iterable, List, Tuple, Union
from typing import Any, AnyStr, Dict, Iterable, List, Optional, Tuple, Union
import urllib.parse

from google.cloud import storage
Expand Down Expand Up @@ -71,8 +71,11 @@ class CommandLineConfig:
url: str

def __init__(
self, config_file=None, service_account_file=None,
project_override=None):
self,
config_file=None,
service_account_file=None,
project_override=None,
):
if not config_file:
config_file = os.environ.get(EE_CONFIG_FILE, DEFAULT_EE_CONFIG_FILE)
self.config_file = config_file
Expand Down
Loading