Skip to content

Commit

Permalink
Updated Windows cache location
Browse files Browse the repository at this point in the history
  • Loading branch information
tmoroney committed Dec 9, 2024
1 parent 9fc38c5 commit cf8ad3c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/package-mac.yml
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ jobs:
python3 -m venv venv
source venv/bin/activate
pip install -r requirements-mac.txt
pyinstaller package-mac.spec --noconfirm
pyinstaller package-server.spec --noconfirm
deactivate
- name: Move Python Server to resources folder
Expand Down
6 changes: 4 additions & 2 deletions Transcription-Server/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,10 @@
os.environ['PYTHONIOENCODING'] = 'utf-8'

# Define a base cache directory using appdirs
cache_dir = appdirs.user_cache_dir(
"AutoSubs", "") # Empty string for appauthor
if platform.system() == 'Windows':
cache_dir = appdirs.user_cache_dir("AutoSubs-Cache", "")
else:
cache_dir = appdirs.user_cache_dir("AutoSubs", "")

# Matplotlib cache directory
matplotlib_cache_dir = os.path.join(cache_dir, 'matplotlib_cachedir')
Expand Down

0 comments on commit cf8ad3c

Please sign in to comment.