[Ironpython-users] execute a python file

andy andypu at zoho.com
Sat Sep 12 14:07:04 CEST 2015


Hello,
Thankyou very much i solved it myself.

On 11.09.2015 21:14, andy wrote:
> Hello ironpython users,
>
> I was trying some examples to write a c# script to execute a python 
> file from unity however i always stumbled over 3 problems:
> 1. Set the path correctly to 
> Path.GetDirectoryName(UnityEngine.Application.dataPath+"/Assets")
> 2. make UnityEngine and other environment available within python
> 3. get an error response which does include the line of the error. Its 
> hard to debug code when i dont know where the error is.
> 4. actually start a file.
>
> 1 and 4 i most time managed somehow but i think it is not good code.
>
> Can someone point me to an example code that can do all of it?
>
> Thanks very much
> Andy
>
> _______________________________________________
> Ironpython-users mailing list
> Ironpython-users at python.org
> https://mail.python.org/mailman/listinfo/ironpython-users




More information about the Ironpython-users mailing list