mirror of
https://github.com/daylinmorgan/viv.git
synced 2024-11-09 19:13:14 -06:00
13 lines
294 B
Python
13 lines
294 B
Python
|
import os
|
||
|
import shutil
|
||
|
from pathlib import Path
|
||
|
|
||
|
cache = (Path(__file__).parent / ".viv-cache").absolute()
|
||
|
if cache.is_dir():
|
||
|
shutil.rmtree(cache)
|
||
|
|
||
|
# remove local settings
|
||
|
os.environ = {k: v for k, v in os.environ.items() if not k.startswith("VIV_")}
|
||
|
|
||
|
os.environ["VIV_CACHE"] = str(cache)
|