''' Configuration standard de pardit. @author: olivier.massot,sept. 2017 ''' from tempfile import mkdtemp from path import Path # Répertoire de l'application APP_DIR = Path(__file__).parent.parent # Chemin d'accès au modèle PDF TEMPLATE_PATH = APP_DIR / r"templates\template.pdf" # Chemin d'accès au fichier de config CONFIG_FILE_PATH = APP_DIR / "pardit.yaml" # Chemin d'accès au fichier de config utilisateur (et création s'il n'existe pas) USER_DATA_DIR = Path("%appdata%").expandvars() / "pardit" USER_DATA_PATH = USER_DATA_DIR / "userdata.yml" # Repertoire temporaire: est nettoyé à la fermeture de pardit, sauf en cas d'erreur. TMPDIR = Path(mkdtemp(prefix='pardit_'))