Might be better to do:
```python
if "SERVICE_VARIANT" in os.environ:
    CONFIG_PREFIX = os.environ["SERVICE_VARIANT"] + "."
else:
    CONFIX_PREFIX = ""
```