File tree Expand file tree Collapse file tree 14 files changed +7
-29
lines changed Expand file tree Collapse file tree 14 files changed +7
-29
lines changed Original file line number Diff line number Diff line change 3
3
4
4
import click
5
5
6
+ from ._utils ._common import load_environment_variables
6
7
from .cli_auth import auth as auth # type: ignore
7
8
from .cli_deploy import deploy as deploy # type: ignore
8
9
from .cli_eval import eval as eval # type: ignore
@@ -42,6 +43,8 @@ def _get_safe_version() -> str:
42
43
help = "Display the current version of uipath." ,
43
44
)
44
45
def cli (lv : bool , v : bool ) -> None :
46
+ load_environment_variables ()
47
+
45
48
if lv :
46
49
try :
47
50
version = importlib .metadata .version ("uipath-langchain" )
Original file line number Diff line number Diff line change 7
7
import time
8
8
from typing import Optional
9
9
10
- from .._utils ._common import load_environment_variables
11
10
from ._oidc_utils import get_auth_config
12
11
13
- load_environment_variables ()
14
12
# Server port
15
13
PORT = 6234
16
14
Original file line number Diff line number Diff line change @@ -106,4 +106,4 @@ def clean_directory(directory: str) -> None:
106
106
107
107
108
108
def load_environment_variables ():
109
- load_dotenv (dotenv_path = find_dotenv (usecwd = True ), override = True )
109
+ load_dotenv (dotenv_path = find_dotenv (usecwd = True ), override = False )
Original file line number Diff line number Diff line change 13
13
from ._auth ._oidc_utils import get_auth_config , get_auth_url
14
14
from ._auth ._portal_service import PortalService , select_tenant
15
15
from ._auth ._utils import update_auth_file , update_env_file
16
- from ._utils ._common import environment_options , load_environment_variables
16
+ from ._utils ._common import environment_options
17
17
from ._utils ._console import ConsoleLogger
18
18
19
- load_environment_variables ()
20
19
console = ConsoleLogger ()
21
20
22
21
Original file line number Diff line number Diff line change 6
6
7
7
import click
8
8
9
- from uipath ._cli ._utils ._common import load_environment_variables
10
-
11
9
from .._utils .constants import ENV_JOB_ID
12
10
from ..telemetry import track
13
11
from ._evals .evaluation_service import EvaluationService
14
12
from ._utils ._console import ConsoleLogger
15
13
16
14
console = ConsoleLogger ()
17
- load_environment_variables ()
18
15
19
16
20
17
class LiteralOption (click .Option ):
Original file line number Diff line number Diff line change 10
10
from .._utils .constants import ENV_TELEMETRY_ENABLED
11
11
from ..telemetry import track
12
12
from ..telemetry ._constants import _PROJECT_KEY , _TELEMETRY_CONFIG_FILE
13
- from ._utils ._common import load_environment_variables
14
13
from ._utils ._console import ConsoleLogger
15
14
from ._utils ._input_args import generate_args
16
15
from ._utils ._parse_ast import generate_bindings_json
17
16
from .middlewares import Middlewares
18
17
19
18
console = ConsoleLogger ()
20
- load_environment_variables ()
21
19
CONFIG_PATH = "uipath.json"
22
20
23
21
Original file line number Diff line number Diff line change 15
15
16
16
from .._utils ._ssl_context import get_httpx_client_kwargs
17
17
from ..telemetry import track
18
- from ._utils ._common import get_env_vars , load_environment_variables
18
+ from ._utils ._common import get_env_vars
19
19
from ._utils ._folders import get_personal_workspace_info
20
20
from ._utils ._processes import get_release_info
21
21
22
22
logger = logging .getLogger (__name__ )
23
- load_environment_variables ()
24
23
console = ConsoleLogger ()
25
24
26
25
Original file line number Diff line number Diff line change 7
7
8
8
from .._utils ._ssl_context import get_httpx_client_kwargs
9
9
from ..telemetry import track
10
- from ._utils ._common import get_env_vars , load_environment_variables
10
+ from ._utils ._common import get_env_vars
11
11
from ._utils ._console import ConsoleLogger
12
12
from ._utils ._folders import get_personal_workspace_info
13
13
from ._utils ._processes import get_release_info
14
14
15
15
console = ConsoleLogger ()
16
- load_environment_variables ()
17
16
18
17
19
18
def get_most_recent_package ():
Original file line number Diff line number Diff line change 19
19
import click
20
20
21
21
from ..telemetry import track
22
- from ._utils ._common import load_environment_variables
23
22
from ._utils ._console import ConsoleLogger
24
23
from ._utils ._constants import UIPATH_PROJECT_ID
25
24
from ._utils ._studio_project import (
30
29
)
31
30
32
31
console = ConsoleLogger ()
33
- load_environment_variables ()
34
32
35
33
36
34
def compute_normalized_hash (content : str ) -> str :
Original file line number Diff line number Diff line change 8
8
9
9
from ..telemetry import track
10
10
from ._push .sw_file_handler import SwFileHandler
11
- from ._utils ._common import load_environment_variables
12
11
from ._utils ._console import ConsoleLogger
13
12
from ._utils ._constants import (
14
13
UIPATH_PROJECT_ID ,
21
20
from ._utils ._uv_helpers import handle_uv_operations
22
21
23
22
console = ConsoleLogger ()
24
- load_environment_variables ()
25
23
26
24
27
25
def get_org_scoped_url (base_url : str ) -> str :
You can’t perform that action at this time.
0 commit comments