Make trytond add all paths listed in GUIX_TRYTOND_MODULES_PATH to sys.path. *** a/trytond/modules/__init__.py 1970-01-01 01:00:01.000000000 +0100 --- b/trytond/modules/__init__.py 2021-12-02 22:17:28.014612267 +0100 *************** *** 31,36 **** --- 31,48 ---- EGG_MODULES = {} + def __extend_python_path__(): + tryton_python_path = os.environ.get("GUIX_TRYTOND_MODULES_PATH") + if tryton_python_path: + paths = [path[:-16] # remove "/trytond/modules" + for path in tryton_python_path.split(os.pathsep)] + sys.path.extend(paths) + # ensure new paths are in the pkg_resources WorkingSet + import pkg_resources + list(map(pkg_resources.working_set.add_entry, paths)) + + __extend_python_path__() + def update_egg_modules(): global EGG_MODULES l tion> Wojtek's customized Guix
aboutsummaryrefslogtreecommitdiff
path: root/gnu/home/services/media.scm
AgeCommit message (Expand)Author
2023-03-16home: services: kodi, znc, ssh-agent: Use 'match-record'....* gnu/home/services/media.scm (home-kodi-services): Use 'match-record' instead of 'match'. * gnu/home/services/messaging.scm (home-znc-services): Likewise. * gnu/home/services/ssh.scm (home-ssh-agent-services): Likewise. Ludovic Courtès
2023-03-16home: services: kodi: Remove host-side use of (shepherd support)....This is a followup to 70056b1b2beebbc9f8ea2c34eacc57f379368ab3, which inadvertently pulled in (shepherd support) on the host side. * gnu/home/services/media.scm (home-kodi-services): Change 'command' and 'logfile' to gexps. Add 'modules' field to 'shepherd-service'. Ludovic Courtès
2023-03-16gnu: home: services: Add home-kodi-service-type....* gnu/home/services/media.scm: New file. * gnu/local.mk (GNU_SYSTEM_MODULES): Add it. * po/guix/POTFILES.in: Likewise. * doc/guix.texi (Media Home Services): Document it in new subsection. Jan (janneke) Nieuwenhuizen