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

Allow relative XDG_CONFIG/CACHE_HOME paths #3902

Merged
merged 1 commit into from
Oct 28, 2024

Conversation

Doy-lee
Copy link
Contributor

@Doy-lee Doy-lee commented Oct 27, 2024

Description

By converting the environment variable if specified to an absolute path using the standard library. This allows passing a relative path like,

XDG_CONFIG_HOME=config
XDG_CACHE_HOME=cache

To expand essentially into ${PWD}/config and ${PWD}/cache respectively. This also additionally lets you use these variables on windows because paths start with a drive letter e.g. C:/, not os.PathSeparator.

PR Target Branch

  • I am targeting the develop branch for non-release changes.

By converting the environment variable if specified to an absolute path
using the standard library. This allows passing a relative path like,

XDG_CONFIG_HOME=config
XDG_CACHE_HOME=cache

To expand essentially into ${PWD}/config and ${PWD}/cache respectively.
@tjayrush
Copy link
Member

Looks good. Thanks.

@tjayrush tjayrush merged commit e6ef967 into TrueBlocks:develop Oct 28, 2024
2 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants