Skip to content

afnio.tellurio.utils

afnio.tellurio.utils.get_config_path()

Returns the absolute path to the Tellurio configuration file.

This function always returns the path to the default config file, ~/.tellurio_config.json, with '~' expanded to the user's home directory.

Returns:

Type Description
str

The absolute path to the Tellurio config file.

Source code in afnio/tellurio/utils.py
 4
 5
 6
 7
 8
 9
10
11
12
13
def get_config_path() -> str:
    """Returns the absolute path to the Tellurio configuration file.

    This function always returns the path to the default config file,
    `~/.tellurio_config.json`, with `'~'` expanded to the user's home directory.

    Returns:
        The absolute path to the Tellurio config file.
    """
    return os.path.expanduser("~/.tellurio_config.json")