diff --git a/IzzyLib/misc.py b/IzzyLib/misc.py index 193376e..7045e62 100644 --- a/IzzyLib/misc.py +++ b/IzzyLib/misc.py @@ -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