mirror of
https://github.com/google/earthengine-api.git
synced 2026-02-01 16:00:51 +00:00
Internal changes.
PiperOrigin-RevId: 705878352
This commit is contained in:
parent
8cb40ea26f
commit
595b7ed5be
@ -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
|
||||
|
||||
@ -13,7 +13,7 @@ import re
|
||||
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
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user