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

Function mkdir_p

python/seldon/shell/shell_main.py:170–176  ·  view source on GitHub ↗
(path)

Source from the content-addressed store, hash-verified

168 return json.dumps(d, sort_keys=True, indent=4, separators=(',', ': ')) if expand else json.dumps(d, sort_keys=True, separators=(',',':'))
169
170def mkdir_p(path):
171 try:
172 os.makedirs(path)
173 except OSError as exc: # Python >2.5
174 if exc.errno == errno.EEXIST and os.path.isdir(path):
175 pass
176 else: raise
177
178def getOpts():
179 parser = argparse.ArgumentParser(description='Seldon Shell')

Callers 1

create_default_confFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected