Skip to content

Commit

Permalink
Properly considers root_dir as a public attribute (including in doc)
Browse files Browse the repository at this point in the history
  • Loading branch information
Samuel FORESTIER authored and HorlogeSkynet committed Feb 13, 2022
1 parent abb3fee commit 526df13
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/distro/distro.py
Original file line number Diff line number Diff line change
Expand Up @@ -714,6 +714,10 @@ def __init__(
parameter. This controls whether (AIX) oslevel information will be
loaded.
* ``root_dir`` (string): The result of the ``root_dir`` parameter.
The absolute path to the root directory to use to find distro-related
information files.
Raises:
* :py:exc:`OSError`: Some I/O issue with an os-release file or distro
Expand Down Expand Up @@ -759,6 +763,7 @@ def __repr__(self) -> str:
"include_lsb={self.include_lsb!r}, "
"include_uname={self.include_uname!r}, "
"include_oslevel={self.include_oslevel!r}, "
"root_dir={self.root_dir!r}, "
"_os_release_info={self._os_release_info!r}, "
"_lsb_release_info={self._lsb_release_info!r}, "
"_distro_release_info={self._distro_release_info!r}, "
Expand Down

0 comments on commit 526df13

Please sign in to comment.