constants.py 465 B

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