aboutsummaryrefslogtreecommitdiff
path: root/src/config.rs
blob: 1f3a8463820dcc03041abcde4545ee2d3f72295f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
use std::path::{Path, PathBuf};

pub fn cookies_file() -> PathBuf {
    let exe = std::env::current_exe().unwrap();
    exe.parent().unwrap_or(Path::new(".")).join("cookies.json")
}

pub fn books_root() -> PathBuf {
    let exe = std::env::current_exe().unwrap();
    exe.parent().unwrap_or(Path::new(".")).join("Books")
}