add PrintMethods function
This commit is contained in:
parent
f32dcd6149
commit
21c1c3cb1e
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue