constants.py 425 B

123456789101112131415161718192021222324
  1. '''
  2. Parameters for the curent project
  3. @author: olivier.massot, 2018
  4. '''
  5. from path import Path
  6. VERSION = "0.4.0"
  7. MAIN = Path(__file__).parent.parent.abspath()
  8. CONTACT = "sig@manchenumerique.fr"
  9. RSCDIR = MAIN / "ui" / "rsc"
  10. LOGCONF = MAIN / "core" / "logging.yaml"
  11. USER_DIR = Path("%appdata%").expandvars() / "mncheck"
  12. USER_DIR.mkdir_p()
  13. LOGDIR = USER_DIR
  14. USER_DATA = USER_DIR / 'user.yaml'