Set default config in the constant module. Use from there to configure app

- Avoid having to pass the khoj_sample.yml data file into pip, native apps
- Packaging data files into python packages is annoying.
  - There's `MANIFEST.in`, `data_files` and `package_data` in setup.py
  - Bdist, wheel, generated source tarball use different set of these fields
    and put the data files in different locations
  - Rather just code the default config into a constant. Avoid
    pointless file reads as well this way
This commit is contained in:
Debanjum Singh Solanky
2022-08-12 02:18:46 +03:00
parent 3f293a8766
commit 110e3df0b7
3 changed files with 61 additions and 3 deletions

View File

@@ -1,5 +1,4 @@
include Readme.md
include config/khoj_sample.yml
graft src/interface/*
prune src/interface/web/images*
prune docs*