Skip to content

Commit

Permalink
Fix documentation build (#225)
Browse files Browse the repository at this point in the history
  • Loading branch information
gaborbernat committed Sep 1, 2023
1 parent 8b52292 commit 4c5563c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/platformdirs/unix.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,11 +175,11 @@ def user_runtime_dir(self) -> str:
@property
def site_runtime_dir(self) -> str:
"""
:return: runtime directory shared by users, e.g. ``/run/$appname/$version`` or
:return: runtime directory shared by users, e.g. ``/run/$appname/$version`` or \
``$XDG_RUNTIME_DIR/$appname/$version``.
Note that this behaves almost exactly like `user_runtime_dir` if ``$XDG_RUNTIME_DIR`` is set, but will
fallback to paths associated to the root user instead of a regular logged-in user if it's not set.
fall back to paths associated to the root user instead of a regular logged-in user if it's not set.
If you wish to ensure that a logged-in root user path is returned e.g. ``/run/user/0``, use `user_runtime_dir`
instead.
Expand Down
2 changes: 1 addition & 1 deletion src/platformdirs/windows.py
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ def get_win_folder_via_ctypes(csidl_name: str) -> str:
windll = getattr(ctypes, "windll") # noqa: B009 # using getattr to avoid false positive with mypy type checker
windll.shell32.SHGetFolderPathW(None, csidl_const, None, 0, buf)

# Downgrade to short path name if it has highbit chars.
# Downgrade to short path name if it has high-bit chars.
if any(ord(c) > 255 for c in buf): # noqa: PLR2004
buf2 = ctypes.create_unicode_buffer(1024)
if windll.kernel32.GetShortPathNameW(buf.value, buf2, 1024):
Expand Down

0 comments on commit 4c5563c

Please sign in to comment.