pipeworks_mud_mapper.services.app_config

Application configuration helpers.

This module centralizes user-configurable settings loaded from config/server.ini. Defaults are used when the file is missing so the app remains runnable out of the box.

Functions

get_path_settings()

Return configured filesystem paths used by the app.

get_server_settings()

Return server settings used by the app (for example, the default port).

format_display_path(path)

Format a path for UI display (relative when possible, trailing slash).

format_short_path(path, *[, keep_parts])

Return a shortened path for compact UI labels.

Module Contents

pipeworks_mud_mapper.services.app_config.get_path_settings()[source]

Return configured filesystem paths used by the app.

Note: changes to config/server.ini require an app restart to take effect.

pipeworks_mud_mapper.services.app_config.get_server_settings()[source]

Return server settings used by the app (for example, the default port).

pipeworks_mud_mapper.services.app_config.format_display_path(path)[source]

Format a path for UI display (relative when possible, trailing slash).

pipeworks_mud_mapper.services.app_config.format_short_path(path, *, keep_parts=3)[source]

Return a shortened path for compact UI labels.

Uses relative path when possible; otherwise keeps the last few segments with an ellipsis prefix to avoid overly wide labels.