Mercurial > hgrepos > Python > libs > ConfigMix
diff configmix/ini.py @ 260:2cfd670281ae
Do not set "root", "self" and "here" variables any more.
This hinders proper automatic configuration on some PyPy configurations
when using `genapplib`.
| author | Franz Glasner <fzglas.hg@dom66.de> |
|---|---|
| date | Tue, 28 Jul 2020 01:12:41 +0200 |
| parents | ff964825a75a |
| children | eed16a1ec8f3 |
line wrap: on
line diff
--- a/configmix/ini.py Wed Jul 08 10:36:55 2020 +0200 +++ b/configmix/ini.py Tue Jul 28 01:12:41 2020 +0200 @@ -90,15 +90,15 @@ raise RuntimeError("already initialized") filename = os.path.normpath(os.path.abspath(filename)) filename = u(filename, locale.getpreferredencoding()) - self.set(None, u("self"), filename) - self.set(None, u("here"), os.path.dirname(filename)) - self.set(None, u("root"), os.path.dirname(self.executable)) + # self.set(None, u("self"), filename) + # self.set(None, u("here"), os.path.dirname(filename)) + # self.set(None, u("root"), os.path.dirname(self.executable)) if hasattr(_ConfigParserBase, "read_file"): _ConfigParserBase.read_file(self, fp, source=filename) else: _ConfigParserBase.readfp(self, fp, filename=filename) self.filename = filename - self.root = os.path.dirname(self.executable) + # self.root = os.path.dirname(self.executable) def getx(self, section, option): """Extended `get()` with some automatic type conversion support.
