9 lines
296 B
Python
9 lines
296 B
Python
"""Helpers for locating configuration files shipped beside the custom node."""
|
|
|
|
from pathlib import Path
|
|
|
|
|
|
def resolve_api_key_path(module_file: str) -> str:
|
|
"""Return the API key path beside the module that requested it."""
|
|
return str(Path(module_file).resolve().parent / "api_key.txt")
|