config in json instead of cfg
This commit is contained in:
parent
fe28804978
commit
daa2e15aa3
4 changed files with 6 additions and 10 deletions
|
@ -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:
|
||||
|
|
|
@ -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
3
config.json
Normal file
|
@ -0,0 +1,3 @@
|
|||
{
|
||||
"numberOfCards": 10
|
||||
}
|
|
@ -1,5 +0,0 @@
|
|||
[conf]
|
||||
# configuration for the dominion set generator
|
||||
# some configurations are self-explanatory, others are described
|
||||
|
||||
numberOfCards = 10
|
Loading…
Reference in a new issue