-
Notifications
You must be signed in to change notification settings - Fork 16
Open
Description
On Linux XDG basedir specification should be followed. That means the database should be stored in data_dir:
if 'XDG_DATA_HOME' in os.environ:
data_dir = os.path.join(os.environ['XDG_DATA_HOME'], 'cum')
else:
data_dir = os.path.join(os.environ['HOME'], '.local', 'share', 'cum')And the configuration file in config_dir:
if 'XDG_CONFIG_HOME' in os.environ:
config_dir = os.path.join(os.environ['XDG_CONFIG_HOME'], 'cum')
else:
config_dir = os.path.join(os.environ['HOME'], '.config', 'cum')Metadata
Metadata
Assignees
Labels
No labels