Skip to content

Commit 526df13

Browse files
Samuel FORESTIERHorlogeSkynet
authored andcommitted
Properly considers root_dir as a public attribute (including in doc)
1 parent abb3fee commit 526df13

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

src/distro/distro.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -714,6 +714,10 @@ def __init__(
714714
parameter. This controls whether (AIX) oslevel information will be
715715
loaded.
716716
717+
* ``root_dir`` (string): The result of the ``root_dir`` parameter.
718+
The absolute path to the root directory to use to find distro-related
719+
information files.
720+
717721
Raises:
718722
719723
* :py:exc:`OSError`: Some I/O issue with an os-release file or distro
@@ -759,6 +763,7 @@ def __repr__(self) -> str:
759763
"include_lsb={self.include_lsb!r}, "
760764
"include_uname={self.include_uname!r}, "
761765
"include_oslevel={self.include_oslevel!r}, "
766+
"root_dir={self.root_dir!r}, "
762767
"_os_release_info={self._os_release_info!r}, "
763768
"_lsb_release_info={self._lsb_release_info!r}, "
764769
"_distro_release_info={self._distro_release_info!r}, "

0 commit comments

Comments
 (0)