Thanks all. Worked on this script

pythonscript ='Desktop/test.py'
execfile(pythonscript)


Thanks Justin and Panupat. :)
On Wednesday, June 27, 2018 at 11:21:25 AM UTC+5:30, Justin Israel wrote:
>
>
>
> On Wed, Jun 27, 2018, 5:18 PM AMAL ARJUN <amala...@gmail.com <javascript:>> 
> wrote:
>
>> Suppose I'm having a Python script in a folder (/Desktop/test.py) and I 
>> want to load that through Python. How can I do that.?
>>
>
>
> Your topic line says 'execute' and your question says 'load'. Can you 
> clarify if you are trying to run test.py as an executable subprocess of 
> your script in Maya, or if you want to import it as a module to make Python 
> calls into it as a library? 
>
> Justin 
>
> -- 
>> 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 python_inside_maya+unsubscr...@googlegroups.com <javascript:>.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/python_inside_maya/32bf2dba-82f3-4803-8da5-33bcfca22210%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/python_inside_maya/32bf2dba-82f3-4803-8da5-33bcfca22210%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 python_inside_maya+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/f2d584b4-dc06-49a6-91ef-825daacfc0c7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to