Looking through the const.py
shows a couple more Gramps variables that might be pertinent.
In an experiment with Example.gramps on a fresh install of Gramps 5.2.1 on a restored to default Windows 10 Pro, the thumbnails were not showing. (Had red ‘x’ icon). Also, the thumb directories identified by the Python Eval script were not populated.
The media all had Relative paths. So until the relative Media path was correctly set, no thumbnails were created.
from gramps.gen import const
# Create a dictionary using a dictionary comprehension
ENV = {
name: value for name, value in vars(const).items()
if name.isupper() and not name.startswith('_') and isinstance(value, (str, int, float, bool))
}
# Print each item in the dictionary
for key, value in ENV.items():
print(f"{key} : {value}")
for a more refined script, see Troubleshooting Gramps paths and environmental variables