connectome-neuprint / neuVid

Generates neuroscience videos from high-level descriptions using Blender or VVDViewer.
Other
26 stars 7 forks source link

recursive directory creation #154

Closed floesche closed 1 year ago

floesche commented 1 year ago

os.makedirs() is a drop-in replacement for os.mkdir() and creates a directory structures recursively.

This is more likely to happen with the --cachdir option from cb46fd043dc6c973af67310de358ef8aeb590168

The code could be further shortened by replacing

if not os.path.exists(path):
    os.makedirs(path)

with

os.makedirs(path, exists_ok=True)
floesche commented 1 year ago

Sure. Sounds good.