Commit 42b8852f authored by David Huss's avatar David Huss 💬
Browse files

Replace appdirs with click

parent 72d0c68b
...@@ -4,7 +4,7 @@ import os ...@@ -4,7 +4,7 @@ import os
import hashlib import hashlib
from datetime import datetime, timedelta from datetime import datetime, timedelta
import requests import requests
import appdirs import click
from xml.etree import cElementTree as ElementTree from xml.etree import cElementTree as ElementTree
from typing import NewType, Optional, Tuple, Iterable, List from typing import NewType, Optional, Tuple, Iterable, List
...@@ -205,7 +205,7 @@ def init_config() -> Optional[Config]: ...@@ -205,7 +205,7 @@ def init_config() -> Optional[Config]:
the user config path. Display a message if neither of these files exist. the user config path. Display a message if neither of these files exist.
""" """
# Get OS dependend properties file # Get OS dependend properties file
user_config_path = appdirs.user_config_dir("bbbmon") user_config_path = click.get_app_dir("bbbmon")
user_config_path = "{}.properties".format(user_config_path) user_config_path = "{}.properties".format(user_config_path)
# Check if we are on the server and try to read that properties file first # Check if we are on the server and try to read that properties file first
......
This diff is collapsed.
[tool.poetry] [tool.poetry]
name = "bbbmon" name = "bbbmon"
version = "0.1.6" version = "0.1.7"
description = "A small CLI utility to monitor bbb usage" description = "A small CLI utility to monitor bbb usage"
authors = ["David Huss <david.huss@hfbk-hamburg.de>"] authors = ["David Huss <david.huss@hfbk-hamburg.de>"]
maintainers = ["David Huss <david.huss@hfbk-hamburg.de>"] maintainers = ["David Huss <david.huss@hfbk-hamburg.de>"]
license = "GPL-3.0+" license = "GPL-3.0+"
readme = "README.md" readme = "README.md"
classifiers = [ classifiers = [
"Development Status :: 3 - Alpha", "Development Status :: 3 - Alpha",
"Environment :: Console", "Environment :: Console",
"Intended Audience :: System Administrators", "Intended Audience :: System Administrators",
"License :: Free for non-commercial use", "License :: Free for non-commercial use",
"License :: Free For Educational Use", "License :: Free For Educational Use",
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)", "License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
"Natural Language :: English", "Natural Language :: English",
"Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.6",
"Topic :: System :: Monitoring", "Topic :: System :: Monitoring",
"Topic :: Communications :: Conferencing" "Topic :: Communications :: Conferencing"
] ]
[tool.poetry.dependencies] [tool.poetry.dependencies]
python = "^3.5" python = "^3.5"
requests = "^2.23.0" requests = "^2.23.0"
appdirs = "^1.4.3" click = "^7.1.2"
[tool.poetry.dev-dependencies] [tool.poetry.dev-dependencies]
pytest = "^5.2" pytest = "^5.2"
[tool.poetry.scripts] [tool.poetry.scripts]
run = "bbbmon.bbbmon:main" run = "bbbmon.bbbmon:main"
[build-system] [build-system]
requires = ["poetry>=0.12"] requires = ["poetry>=0.12"]
build-backend = "poetry.masonry.api" build-backend = "poetry.masonry.api"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment