tr11 / python-configuration

A Python library to load configuration parameters

Home Page:https://tr11.github.io/python-configuration/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Can't load python-configuration in a Python IDLE shell

PFaurel opened this issue · comments

If you run IDLE Python shell then try to load config, it doesn't load the expected module because idlelib already contains a config module.
image

=> \Lib\idlelib\config is loaded first and \Lib\site-packages\config cannot be loaded

I'm not sure what we can do here if a particular library or IDE already uses a config import.

Sorry, it isn't a particular library : idlelib is a part of the standard Python package from https://www.python.org.
python-configuration is a particular library - and it's great ! - but this case could avoid its usage by some developers because of this issue.

A solution is to rename this module in a next release.
'config' is quit generic and could create confusion with a lot of libs, why didn't you keep the package name (python_configuration) ?