Skip to content
This repository was archived by the owner on Jan 23, 2026. It is now read-only.

Commit 54cfcc2

Browse files
authored
Merge pull request #388 from jumpstarter-dev/xdg-2
Use JMP_CLIENT_CONFIG_HOME if set
2 parents a521fa2 + e217d59 commit 54cfcc2

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

packages/jumpstarter/jumpstarter/config/common.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,13 @@
1+
from os import getenv
2+
from pathlib import Path
3+
14
from pydantic import BaseModel
25
from xdg_base_dirs import xdg_config_home
36

7+
from .env import JMP_CLIENT_CONFIG_HOME
8+
49
CONFIG_API_VERSION = "jumpstarter.dev/v1alpha1"
5-
CONFIG_PATH = xdg_config_home() / "jumpstarter"
10+
CONFIG_PATH = Path(getenv(JMP_CLIENT_CONFIG_HOME, xdg_config_home() / "jumpstarter"))
611

712

813
class ObjectMeta(BaseModel):

packages/jumpstarter/jumpstarter/config/env.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# Common environment variables for client/exporter config
2+
JMP_CLIENT_CONFIG_HOME = "JMP_CLIENT_CONFIG_HOME"
23
JMP_CLIENT_CONFIG = "JMP_CLIENT_CONFIG"
34
JMP_NAMESPACE = "JMP_NAMESPACE"
45
JMP_NAME = "JMP_NAME"

0 commit comments

Comments
 (0)