MCPcopy Create free account
hub / github.com/SeldonIO/seldon-server / mkdir_p

Function mkdir_p

python/seldon/cli/cli_main.py:258–264  ·  view source on GitHub ↗
(path)

Source from the content-addressed store, hash-verified

256 p.pprint(o)
257
258def mkdir_p(path):
259 try:
260 os.makedirs(path)
261 except OSError as exc: # Python >2.5
262 if exc.errno == errno.EEXIST and os.path.isdir(path):
263 pass
264 else: raise
265
266def dict_to_json(d, expand=False):
267 return json.dumps(d, sort_keys=True, indent=4, separators=(',', ': ')) if expand else json.dumps(d, sort_keys=True, separators=(',',':'))

Callers 1

create_default_confFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected