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

Replace appdirs with click

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