Also, please be more descriptive about the behaviour of "it fails". Is
there a crash? Is it just s
not doing anything at all?

On Fri, 12 Feb 2016 8:03 AM Justin Israel <[email protected]> wrote:

> Are you printing the value of "i" to make sure you are getting good
> values?
>
> On Fri, 12 Feb 2016 7:24 AM BWV 656 <[email protected]> wrote:
>
>> 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
>> <https://groups.google.com/d/msgid/python_inside_maya/995436aa-bdfa-4d83-9e4f-0dc20f30c02d%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>

-- 
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/CAPGFgA2WGDW1-d02gKD%3DSpSVXhoNcWop%3DWQPFNL1A%2BJiYPcj%3Dg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to