Skip to content

Commit fe0f86e

Browse files
Copilotlucemia
andauthored
Add missing docstring to get_cache_path function (#809)
* Initial plan * Add missing docstring to get_cache_path function Co-authored-by: lucemia <432851+lucemia@users.noreply.github.com> * Update docstring format for get_cache_path Co-authored-by: lucemia <432851+lucemia@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: lucemia <432851+lucemia@users.noreply.github.com>
1 parent 03b7c35 commit fe0f86e

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/ffmpeg/common/cache.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,18 @@
1010

1111

1212
def get_cache_path() -> Path:
13+
"""
14+
Get the cache directory path.
15+
16+
Returns the cache directory path, creating it if it doesn't exist.
17+
When running as a frozen application (e.g., PyInstaller), uses the
18+
temporary extraction directory. Otherwise, uses the cache subdirectory
19+
relative to this module.
20+
21+
Returns:
22+
Path: The cache directory path
23+
24+
"""
1325
if getattr(sys, "frozen", False):
1426
base_path = Path(getattr(sys, "_MEIPASS", ""))
1527
else:

0 commit comments

Comments
 (0)