|
From: Alex T. <al...@tw...> - 2007-12-03 23:42:18
|
Hedlund, Peter wrote:
>
> Greetings,
>
> I am in need of some assistance on this one.
>
> I want the user to be able to edit a python script file and allow that
> script to be run from within my main python program.
>
> Now before everyone jumps on the execfile bandwagon I need to clarify
> some things.
>
>
>
> The main python program has several other python scripts in the project.
>
> I am using pythoncard for my user ide.
>
> The user script will need to call functions already defined in the
> main.py and pass information back to main.py.
>
>
>
> Main program opens a serial port to a device
>
> User script will send commands to the device by way of functions in main
>
>
>
> Any ideas on this would be appreciated.
>
>
>
Probably being naive, but ....
Can't you simply do an eval() of the user script ?
--
Alex Tweedly mailto:al...@tw... www.tweedly.net
|