Open frafra opened 1 year ago
It could be fixed using
table_name = pycsw_config.get("repository", "table", fallback="records")
but you also need to import configparser
, also to prevent the warning about the deprecation of the old parser:
DeprecationWarning: The SafeConfigParser class has been renamed to ConfigParser in Python 3.2.
If you need to use env vars in the config file you also need to import EnvInterpolation
from the related pycsw package and init the config in this way:
config = configparser.ConfigParser(interpolation=EnvInterpolation())