mirror of
https://github.com/onyx-and-iris/vban-cmd-python.git
synced 2024-11-16 01:10:48 +00:00
1c57528cd8
added profiles module. added example profile configs added toml dependency to setup.py add apply_profile and reset functions to base class
15 lines
349 B
Python
15 lines
349 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 |