Work around trytond.module not being a real namespace module. Solution is to add all trytond module's locations to trytond.modules._path__. This will make trytond.module behave much like a namespace module. Adding to __path__ is done in update_egg_modules() to ensure __path__ is updated whenever the list of egg modules is updated. *** a/trytond/modules/__init__.py 1970-01-01 01:00:01.000000000 +0100 --- b/trytond/modules/__init__.py 2021-12-02 18:12:15.385101986 +0100 *************** *** 38,43 **** --- 38,46 ---- import pkg_resources for ep in pkg_resources.iter_entry_points('trytond.modules'): EGG_MODULES[ep.name] = ep + path = os.path.join(ep.dist.location, 'trytond', 'modules') + if not path in __path__ and os.path.isdir(path): + __path__.append(path) except ImportError: pass Wojtek's customized Guix
aboutsummaryrefslogtreecommitdiff
path: root/tests/guix-locate.sh
AgeCommit message (Expand)Author
2023-11-15locate: Accept ‘--clear’ without additional arguments....Fixes a bug whereby ‘guix locate --clear’ would end with the “no files to search for” error. Fixes <https://issues.guix.gnu.org/66799>. * guix/scripts/locate.scm (guix-locate): Do not emit “no files to search for” error when 'clear? is set in OPTS. * tests/guix-locate.sh: Test it. Reported-by: Maciej Kalandyk <m.kalandyk@outlook.com> Change-Id: Ib8fa125c18481d7f5408bd89df9503713527641d Ludovic Courtès
2023-06-18Add 'guix locate'....* guix/scripts/locate.scm, tests/guix-locate.sh: New files. * Makefile.am (MODULES): Add 'guix/scripts/locate.scm'. (SH_TESTS): Add 'tests/guix-locate.sh'. * po/guix/POTFILES.in: Add it. * doc/guix.texi (Invoking guix locate): New node. Co-authored-by: Antoine R. Dumont <antoine.romain.dumont@gmail.com> Ludovic Courtès