[commons] refactoring: 'user' module moved to 'api'

This commit is contained in:
Vinicius Moreira
2021-11-23 18:02:54 -03:00
parent 8f9810bd69
commit f78498c1ec
8 changed files with 12 additions and 9 deletions

View File

@@ -1,8 +1,9 @@
import os
from pathlib import Path
from bauh.api import user
CACHE_PATH = '{}/.cache/bauh'.format(str(Path.home()))
CONFIG_PATH = '{}/.config/bauh'.format(str(Path.home()))
USER_THEMES_PATH = '{}/.local/share/bauh/themes'.format(str(Path.home()))
DESKTOP_ENTRIES_DIR = '{}/.local/share/applications'.format(str(Path.home()))
TEMP_DIR = '/tmp/bauh{}'.format('_root' if os.getuid() == 0 else '')
TEMP_DIR = '/tmp/bauh{}'.format('_root' if user.is_root() else '')