build: Addressed file not found

This commit is contained in:
あきと ミズキト 2019-10-23 19:57:47 +09:00 committed by John Wu
parent 3eb9633231
commit a5fc7891a6
1 changed files with 3 additions and 0 deletions

View File

@ -119,6 +119,9 @@ def load_config(args):
config['keyStore'] = 'release-key.jks'
# Load prop file
if not os.path.exists(args.config):
error(f'Please make sure {args.config} existed')
with open(args.config, 'r') as f:
for line in [l.strip(' \t\r\n') for l in f]:
if line.startswith('#') or len(line) == 0: