skinniderlab / CLM

MIT License
0 stars 0 forks source link

os.makedirs in commands #123

Closed vineetbansal closed 2 months ago

vineetbansal commented 5 months ago

os.makedirs(os.path.dirname(filename)) will fail if filename doesn't have a directory component. We can go through all such cases in the code and replace with something like makedirs(dirname(abspath("b/c/a")) (all from os.path). Or perhaps the path module provides a shorter way to do this..