Hello I am trying to source all the python files in a folder via 
userSetup.py
 
Doing it individually works 
*execfile('/u/james/myPy/Materials.py' )*

However when I try to load everything it fails.

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

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

Would you please help me how to solve this?
Thank you so much.

-- 
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/995436aa-bdfa-4d83-9e4f-0dc20f30c02d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to