edponce / FACET

Framework for Annotation and Concept Extraction in Text
Other
2 stars 0 forks source link

Add support for environment variables in configuration files #9

Closed edponce closed 4 years ago

edponce commented 4 years ago

Environment variables can now be expressed in configuration files via $VAR or ${VAR} syntax. If environment variable does not exists, then no parsing occurs. This is the behavior of os.path.expandvars().

Also, user path expansion '~' is supported with os.path.expanduser().

Both, user path and environment variables are supported in any filename used in FACET.