chiark / gitweb /
nightly: only use read_config to load final, generated config.py
authorHans-Christoph Steiner <hans@eds.org>
Fri, 1 Dec 2017 09:07:21 +0000 (10:07 +0100)
committerHans-Christoph Steiner <hans@eds.org>
Mon, 4 Dec 2017 21:52:41 +0000 (22:52 +0100)
commitbf913703c5c41d025ccd10e17c53a2851124fd50
tree31d1b78698d165fc25da17c526a91abd09836cd8
parent8a61b0b94553fc26010807bf94664b81617ea55f
nightly: only use read_config to load final, generated config.py

This needs to use the config loading routine to find Java `keytool`, but
since it doesn't need to fully load the config, isolate that usage in the
function.  Then read_config() is only ever called once, as is it meant to
be used, once the config.py is generated.

Using `from . import common; common.config = foo` will not always work,
due to some oddities to how the `from` imports work. So the full module
has to be imported in order to make sure its always properly set.
fdroidserver/nightly.py