There haven't been any changes to how CALIBRE_CONFIG_DIRECTORY is processed in 3.30 and as far as I know it has never resolved environment variables, see
https://github.com/kovidgoyal/calibr...stants.py#L236
So I am surprised it ever worked. As for why it stopped working in x64 it is probably because windows maintains a different set of env vars for 64bit and 32bit processes running on a 64bit computer -- I vaguely recall that windows jumps through various hoops for compatibility purposes when doing this.