Closed drewp closed 2 years ago
Hi @drewp - was a bit confused by this, files.makedirs
isn't an operation at all! It's actually just importing os.makdirs
which is imported/used in the files.py
module. Using the files.directory
operation should enable you to achieve the desired result.
I suppose this is a weird gotcha with having everything be Python code. It would definitely be nice to avoid/prevent/warn about this somehow, but I'm not quite sure how (aside from prefixing them all or similar, which is not ideal!).
Ha, I see. I probably got it from autocomplete and assumed it must be an operation. Possible fixes:
__all__
global in files.py listing the things you do want to exportimport os
instead of from os import makedirs
would have been enough here, since I'm not going to accidentally write files.os.makedirs
in my configmakedirs = directory
at the bottom (kidding- don't do this)makedirs = directory at the bottom (kidding- don't do this)
🤣
Unfortunately __all__
doesn't prevent such imports, I'll change things to just import os
and use os.makedirs
etc!
Whoa, I never knew __all__
was only to control import *
!
Your fix sgtm.
Whoa, I never knew
__all__
was only to controlimport *
!
Me either, only discovered it looking into this!
v2 + 1.7.1 include the fix as above.
bad:
good:
--> Support information: