vban-cmd-python/vbancmd/util.py
onyx-and-iris 5d878a5df0 black reformatter
now using black reformatter
2022-03-26 23:00:09 +00:00

20 lines
352 B
Python

from pathlib import Path
PROJECT_DIR = str(Path(__file__).parents[1])
def project_path():
return PROJECT_DIR
def cache(func):
"""check if recently cached was an updated value"""
def wrapper(*args, **kwargs):
# setup cache check
res = func(*args, **kwargs)
# update cache
return res
return wrapper