Skip to content

Commit

Permalink
Replace deprecated appdirs with platformdirs
Browse files Browse the repository at this point in the history
  • Loading branch information
sbrun committed Jan 23, 2025
1 parent 19cc46b commit 60e9c37
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions autorecon/config.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import appdirs, os
import platformdirs, os

config_dir = appdirs.user_config_dir('AutoRecon')
data_dir = appdirs.user_data_dir('AutoRecon')
config_dir = platformdirs.user_config_dir('AutoRecon')
data_dir = platformdirs.user_data_dir('AutoRecon')

configurable_keys = [
'ports',
Expand Down
2 changes: 1 addition & 1 deletion autorecon/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from datetime import datetime

try:
import appdirs, colorama, impacket, psutil, requests, toml, unidecode
import colorama, impacket, platformdirs, psutil, requests, toml, unidecode
from colorama import Fore, Style
except ModuleNotFoundError:
print('One or more required modules was not installed. Please run or re-run: ' + ('sudo ' if os.getuid() == 0 else '') + 'python3 -m pip install -r requirements.txt')
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ packages = [

[tool.poetry.dependencies]
python = "^3.8"
appdirs = "^1.4.4"
platformdirs = "^4.3.6"
colorama = "^0.4.5"
impacket = "^0.10.0"
psutil = "^5.9.4"
Expand Down
4 changes: 2 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
appdirs>=1.4.4
colorama>=0.4.5
impacket>=0.10.0
platformdirs>=4.3.6
psutil>=5.9.4
requests>=2.28.1
toml>=0.10.2
Unidecode>=1.3.1
Unidecode>=1.3.1

0 comments on commit 60e9c37

Please sign in to comment.