jw-pkg/src/python/jw/pkg
Jan Lindemann b35d61311c
App: Support --topdir-format "relative"

The global --topdir-format option governs how a project's root directory is represented in paths output by various queries. "absolute" means as absolute path, "unaltered" means verbatim as specified via --topdir, make:xyz means replaced by the string $(xyz), for later expansion in a makefile variable.

This commit adds another variant: "relative" yields the shortest possible output format of the output path in question relative to --topdir, with "shortest possible" in this context meaning canonicalized and leading "./" stripped.

Signed-off-by: Jan Lindemann <jan@janware.com>
2026-06-11 12:18:37 +02:00
..
cmds cmds.projects.CmdCreateFile: Add more options 2026-06-09 07:46:47 +02:00
lib lib.ExecContext._put(): Fix forgotten input 2026-06-10 12:56:05 +02:00
__init__.py jw.pkg.__init__.py: Add file to Git 2026-06-01 14:32:44 +02:00
App.py App: Support --topdir-format "relative" 2026-06-11 12:18:37 +02:00
CmdBase.py CmdBase / cmds.projects.Cmd: Add modules 2026-05-31 17:52:20 +02:00
Makefile jw.pkg.__init__.py: Add file to Git 2026-06-01 14:32:44 +02:00
py.typed jw/pkg/py.typed: Add file 2026-05-31 18:21:20 +02:00