buildroot: rename path argument to rundir

This matches the internal, "private", property and better
describes what the variable is for. Additionally, make it
into a proper keyword argument.
This commit is contained in:
Christian Kellner 2021-02-11 20:57:43 +00:00
parent 749f59cc9a
commit 48418be8de

View file

@ -59,10 +59,10 @@ class BuildRoot(contextlib.AbstractContextManager):
only when exiting the context manager.
"""
def __init__(self, root, runner, libdir, var, path="/run/osbuild"):
def __init__(self, root, runner, libdir, var, *, rundir="/run/osbuild"):
self._exitstack = None
self._rootdir = root
self._rundir = path
self._rundir = rundir
self._vardir = var
self._libdir = libdir
self._runner = runner