Skip to content

Resolve #1034 Migrate from appdirs to platformdirs #1038

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions interpreter/terminal_interface/utils/local_storage_path.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import os

import appdirs
import platformdirs

# Using appdirs to determine user-specific config path
config_dir = appdirs.user_config_dir("Open Interpreter")
# Using platformdirs to determine user-specific config path
config_dir = platformdirs.user_config_dir("Open Interpreter")


def get_storage_path(subdirectory=None):
Expand Down
4 changes: 2 additions & 2 deletions interpreter/terminal_interface/utils/oi_dir.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
import appdirs
import platformdirs

oi_dir = appdirs.user_config_dir("Open Interpreter Terminal")
oi_dir = platformdirs.user_config_dir("Open Interpreter Terminal")
23 changes: 6 additions & 17 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ readme = "README.md"
[tool.poetry.dependencies]
python = ">=3.9,<3.12"

appdirs = "^1.4.4"
astor = "^0.8.1"
git-python = "^1.0.3"
inquirer = "^3.1.3"
Expand Down Expand Up @@ -44,6 +43,7 @@ send2trash = "^1.8.2"
uvicorn = "^0.27.0"
fastapi = "^0.110.0"
aifs = "^0.0.9"
platformdirs = "^4.2.0"

[tool.poetry.extras]
os = ["opencv-python", "pyautogui", "plyer", "pywinctl", "pytesseract"]
Expand Down