MCPcopy Index your code
hub / github.com/thygate/stable-diffusion-webui-depthmap-script / get_opt

Function get_opt

src/backbone.py:23–27  ·  view source on GitHub ↗
(name, default)

Source from the content-addressed store, hash-verified

21 from modules.shared import listfiles
22
23 def get_opt(name, default):
24 from modules.shared import opts
25 if hasattr(opts, name):
26 return opts.__getattr__(name)
27 return default
28
29 def get_cmd_opt(name, default):
30 """Get command line argument"""

Callers 3

gather_opsFunction · 0.85
get_outpathFunction · 0.85
save_imageFunction · 0.85

Calls 1

__getattr__Method · 0.80

Tested by

no test coverage detected