os.listdir()

Peter Hansen peter at engcorp.com
Fri Jun 20 23:21:38 EDT 2003


Hans Nowak wrote:
> 
> manuel wrote:
> >>If you can't "import os" in Blender, something is wrong...
> >
> This might work: import the nt module (it's built-in), then use nt.listdir.

In which case "import nt as os" _might_ be good for portability.
Otherwise you'd be sprinkling nt.listdir's around and confusing
anyone trying to read the code.

-Peter




More information about the Python-list mailing list