Skip to content

Commit 902f914

Browse files
fix: read config from UIPATH_CONFIG_PATH env var when available (#1441)
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 7e4bca5 commit 902f914

5 files changed

Lines changed: 9 additions & 5 deletions

File tree

packages/uipath-platform/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "uipath-platform"
3-
version = "0.0.21"
3+
version = "0.0.22"
44
description = "HTTP client library for programmatic access to UiPath Platform"
55
readme = { file = "README.md", content-type = "text/markdown" }
66
requires-python = ">=3.11"

packages/uipath-platform/src/uipath/platform/common/_config.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,12 @@ def bindings_file_path(self) -> Path:
2727

2828
@property
2929
def config_file_path(self) -> Path:
30-
from uipath.platform.common.constants import UIPATH_CONFIG_FILE
30+
from uipath.platform.common.constants import (
31+
ENV_UIPATH_CONFIG_PATH,
32+
UIPATH_CONFIG_FILE,
33+
)
3134

32-
return Path(UIPATH_CONFIG_FILE)
35+
return Path(os.environ.get(ENV_UIPATH_CONFIG_PATH, UIPATH_CONFIG_FILE))
3336

3437
@property
3538
def config_file_name(self) -> str:

packages/uipath-platform/src/uipath/platform/common/constants.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
ENV_UIPATH_PROCESS_UUID = "UIPATH_PROCESS_UUID"
2323
ENV_UIPATH_TRACE_ID = "UIPATH_TRACE_ID"
2424
ENV_UIPATH_PROCESS_VERSION = "UIPATH_PROCESS_VERSION"
25+
ENV_UIPATH_CONFIG_PATH = "UIPATH_CONFIG_PATH"
2526

2627
# Headers
2728
HEADER_FOLDER_KEY = "x-uipath-folderkey"

packages/uipath-platform/uv.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/uipath/uv.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)