mirror of
https://github.com/GothenburgBitFactory/timewarrior.git
synced 2025-06-26 10:54:28 +02:00
Allow help.t test to find manpages without installing them.
This commit is contained in:
parent
8109c155af
commit
f0bda68b02
43 changed files with 48 additions and 42 deletions
|
@ -72,6 +72,12 @@ class Timew(object):
|
|||
# As well as TIMEWARRIORDB
|
||||
self.env["TIMEWARRIORDB"] = self.datadir
|
||||
|
||||
# As well as MANPATH, so that the help tests can find the
|
||||
# uninstalled man pages
|
||||
parts = self.timew.split(os.path.sep)[0:-2]
|
||||
parts.append("doc")
|
||||
self.env["MANPATH"] = os.path.sep.join(parts)
|
||||
|
||||
def config(self, var, value):
|
||||
"""Run setup `var` as `value` in timew config"""
|
||||
# Add -- to avoid misinterpretation of - in things like UUIDs
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue