mirror of
https://github.com/spalencsar/bearhub.git
synced 2026-07-08 23:24:15 +02:00
[api.paths] refactoring: CACHE_PATH renamed to CACHE_DIR
This commit is contained in:
@@ -1,12 +1,12 @@
|
||||
from pathlib import Path
|
||||
|
||||
from bauh.api.paths import CACHE_PATH
|
||||
from bauh.api.paths import CACHE_DIR
|
||||
|
||||
TRAY_CHECK_FILE = f'{CACHE_PATH}/notify_tray' # it is a file that signals to the tray icon it should recheck for updates
|
||||
TRAY_CHECK_FILE = f'{CACHE_DIR}/notify_tray' # it is a file that signals to the tray icon it should recheck for updates
|
||||
|
||||
|
||||
def notify_tray():
|
||||
Path(CACHE_PATH).mkdir(exist_ok=True, parents=True)
|
||||
Path(CACHE_DIR).mkdir(exist_ok=True, parents=True)
|
||||
|
||||
with open(TRAY_CHECK_FILE, 'w+') as f:
|
||||
f.write('')
|
||||
|
||||
Reference in New Issue
Block a user