add PrintMethods function

This commit is contained in:
Izalia Mae 2021-03-21 02:35:30 -04:00
parent f32dcd6149
commit 21c1c3cb1e

View file

@ -153,6 +153,15 @@ def NfsCheck(path):
return False
def PrintMethods(object, include_underscore=False):
for line in dir(object):
if line.startswith('_'):
if include_underscore:
print(line)
else:
print(line)
class DotDict(dict):
def __init__(self, value=None, **kwargs):
'''Python dictionary, but variables can be set/get via attributes