MCPcopy
hub / github.com/celery/celery / _setdefaultopt

Method _setdefaultopt

celery/apps/multi.py:144–154  ·  view source on GitHub ↗
(self, d, alt, value)

Source from the content-addressed store, hash-verified

142 return options
143
144 def _setdefaultopt(self, d, alt, value):
145 for opt in alt[1:]:
146 try:
147 return d[opt]
148 except KeyError:
149 pass
150 value = d.setdefault(alt[0], os.path.normpath(value))
151 dir_path = os.path.dirname(value)
152 if dir_path and not os.path.exists(dir_path):
153 os.makedirs(dir_path)
154 return value
155
156 def _prepare_expander(self):
157 shortname, hostname = self.name.split('@', 1)

Callers 1

Calls 1

setdefaultMethod · 0.45

Tested by

no test coverage detected