config in json instead of cfg

This commit is contained in:
Bela 2019-08-26 21:02:38 +02:00
parent fe28804978
commit daa2e15aa3
4 changed files with 6 additions and 10 deletions

View file

@ -4,6 +4,8 @@ import os
import configparser
import json
CONFIGFILE = "config.json"
class Playcard:
"""Playcard.
@ -141,6 +143,7 @@ def importAllCards(dir):
return cards
if __name__ == "__main__":
(_, _, filenames) = next(os.walk("cards"))
cards = {}
for filename in filenames:

View file

@ -1,5 +0,0 @@
[conf]
# configuration for the dominion set generator
# some configurations are self-explanatory, others are described
numberOfCards = 10

3
config.json Normal file
View file

@ -0,0 +1,3 @@
{
"numberOfCards": 10
}

View file

@ -1,5 +0,0 @@
[conf]
# configuration for the dominion set generator
# some configurations are self-explanatory, others are described
numberOfCards = 10