brunogge 0.1.4__tar.gz → 0.1.5__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {brunogge-0.1.4 → brunogge-0.1.5}/PKG-INFO +1 -1
- brunogge-0.1.5/brunogge/__init__.py +6 -0
- {brunogge-0.1.4 → brunogge-0.1.5}/brunogge/getconfig.py +5 -1
- {brunogge-0.1.4 → brunogge-0.1.5}/brunogge.egg-info/PKG-INFO +1 -1
- {brunogge-0.1.4 → brunogge-0.1.5}/pyproject.toml +1 -1
- brunogge-0.1.4/brunogge/__init__.py +0 -5
- {brunogge-0.1.4 → brunogge-0.1.5}/README.md +0 -0
- {brunogge-0.1.4 → brunogge-0.1.5}/brunogge/barony.py +0 -0
- {brunogge-0.1.4 → brunogge-0.1.5}/brunogge/get_ws.py +0 -0
- {brunogge-0.1.4 → brunogge-0.1.5}/brunogge/ggs_stuff.py +0 -0
- {brunogge-0.1.4 → brunogge-0.1.5}/brunogge/just_funcs.py +0 -0
- {brunogge-0.1.4 → brunogge-0.1.5}/brunogge/server_list.json +0 -0
- {brunogge-0.1.4 → brunogge-0.1.5}/brunogge.egg-info/SOURCES.txt +0 -0
- {brunogge-0.1.4 → brunogge-0.1.5}/brunogge.egg-info/dependency_links.txt +0 -0
- {brunogge-0.1.4 → brunogge-0.1.5}/brunogge.egg-info/top_level.txt +0 -0
- {brunogge-0.1.4 → brunogge-0.1.5}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
from configparser import ConfigParser
|
2
2
|
import json, os
|
3
|
-
def getconfig(type:str ,savename:str ,created:str = "y"):
|
3
|
+
def getconfig(type:str ,savename:str ,created:str = "y") -> dict:
|
4
4
|
if created == "y":
|
5
5
|
config = ConfigParser()
|
6
6
|
# Use the user’s home directory and create the config file path
|
@@ -13,6 +13,8 @@ def getconfig(type:str ,savename:str ,created:str = "y"):
|
|
13
13
|
|
14
14
|
if savename in config:
|
15
15
|
if type == "baron":
|
16
|
+
nick = config.get(savename, "nick")
|
17
|
+
pwrd = config.get(savename, "pwrd")
|
16
18
|
kid = config.get(savename, "kid")
|
17
19
|
excluded_commanders = config.get(savename, "excluded_commanders")
|
18
20
|
radius_option = config.get(savename, "radius_option")
|
@@ -37,6 +39,8 @@ def getconfig(type:str ,savename:str ,created:str = "y"):
|
|
37
39
|
kid = "3"
|
38
40
|
# Return as a dictionary
|
39
41
|
result = {
|
42
|
+
"nick": nick,
|
43
|
+
"pwrd": pwrd,
|
40
44
|
"kid": kid,
|
41
45
|
"excluded_commanders": excluded_commanders,
|
42
46
|
"radius_option": radius_option,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|