Thanks Justin.
Yes when I put print i, it lists all the file.

And what i meant was it fails to load any of the py files in the folder.
Would you please tell me if there is any other way to load entire folder?

*import glob*
*pyFiles = glob.glob("/u/james/myPy/*")*

*for i in pyFiles:*
* print i*
* execfile(i)*

-- 
You received this message because you are subscribed to the Google Groups 
"Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/8a4cbe11-d92f-44e6-a50c-c7ce990929d6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to