DotDict fixes
This commit is contained in:
parent
945355ecae
commit
13ca23f95e
|
@ -6,6 +6,9 @@ __url__ = 'htts://git.barkshark.xyz/barkshark/reload'
|
|||
__license__ = 'Non-Violent Public License v5'
|
||||
__license_url__ = 'https://git.pixie.town/thufie/NPL/src/tag/5/NPL.txt'
|
||||
|
||||
import json
|
||||
from pathlib import Path
|
||||
|
||||
|
||||
class DotDict(dict):
|
||||
def __init__(self, value=None, **kwargs):
|
||||
|
@ -93,10 +96,10 @@ class DotDict(dict):
|
|||
data = {}
|
||||
|
||||
for k,v in self.items():
|
||||
if type(k) in [DotDict, Path, Pathlib]:
|
||||
if type(k) in [DotDict, Path]:
|
||||
k = str(k)
|
||||
|
||||
if type(v) in [DotDict, Path, Pathlib]:
|
||||
if type(v) in [DotDict, Path]:
|
||||
v = str(v)
|
||||
|
||||
data[k] = v
|
||||
|
|
|
@ -70,8 +70,9 @@ if not config.path.exists():
|
|||
sys.exit()
|
||||
|
||||
|
||||
if len(sys.argv) > 1:
|
||||
command += sys.argv[1:]
|
||||
#if len(sys.argv) > 1:
|
||||
#command += sys.argv[1:]
|
||||
|
||||
|
||||
logging = logger.getLogger('reloader')
|
||||
logging.setLevel(logger.DEBUG)
|
||||
|
|
Loading…
Reference in a new issue