DotDict fixes

This commit is contained in:
Izalia Mae 2021-02-06 23:51:46 -05:00
parent 945355ecae
commit 13ca23f95e
3 changed files with 9 additions and 5 deletions

View file

@ -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

View file

@ -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)

View file

@ -1,7 +1,7 @@
#!/usr/bin/env python3
from setuptools import setup
import sys
import sys
import reload