Open phreed opened 7 months ago
we need to extensive test this. In general we want to host all user configurations in the YAML file.
see the priorty of configuration
we need to extensive test this. In general we want to host all user configurations in the YAML file. see the priorty of configuration
Yes indeed.
I see FTSConfig.yaml as used in development.
I see in FTS Docs
the two files described being edited to configure FTS are <site-packages>/FreeTAKServer-UI/config.py
and <site-packages>/FreeTAKServer/controllers/configuration/MainConfig.py
.
Those files are:
Is it appropriate for these documents to recommend modifying config.py
?
@naman108 please review this and see if we can approve
@naman108 ping
Issues to discuss:
Use of
platformdirs
platformdirs
makes some decisions that differ from those in theconfig.py
. https://platformdirs.readthedocs.io/en/latest/Use of
sysconfig
sysconfig
can be used to identify thesite-packages
(or equivalent). The use ofMAIN_PATH = Path(sysconfig.get_path('purelib'))
may be more reliable; than, searching based on knowing the location of__file__
.Using python
Path
s rather than stringsThe place where this is most likely is
config.py
. Are there other source files that should be considered?