Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

Support env-variable FROGMOUT_CFG_FILE to set the config-location #82

Closed
woutervh opened this issue Oct 8, 2023 · 0 comments
Closed

Comments

@woutervh
Copy link

woutervh commented Oct 8, 2023

The config-file is currently hardcoded.

def config_file() -> Path:
    """Get the path to the configuration file.

    Returns:
        The path to the configuration file.

    Note:
        As a side-effect, the configuration directory will be created if it
        does not exist.
    """
    (config_dir := xdg_config_home() / ORGANISATION_NAME / PACKAGE_NAME).mkdir(
        parents=True, exist_ok=True
    )
    return config_dir / "configuration.json"

This is not virtualenv-friendly.

virtualenv allows to install multiple python-apps in parallel,
but it's problematic when they all want to use the same -configfile in $HOME

pleasa support setting this location by env-var:

> export FROGMOUT_CFG_FILE = ....
@Textualize Textualize locked and limited conversation to collaborators Oct 8, 2023
@davep davep converted this issue into discussion #83 Oct 8, 2023

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant