Re: injecting functions into a python sandbox within a python program

2007-01-11 Thread Graham Menhennitt
Bruno Desthuilliers wrote: > If all your helper functions are really methods of the Interface > instance, you may try this instead (NB : not tested): > > glob = { > 'i': i, > 'f1': i.whatever, > } > exec script in glob Bruno, Thanks for replying. Some of the functions are as simple a

Re: injecting functions into a python sandbox within a python program

2007-01-09 Thread Bruno Desthuilliers
Graham Menhennitt a écrit : > I have a large Python 2.5 program that I want my users to be able to > "extend" using a Python script. However, I want their script to run in a > sandbox within the overall program so that they only have access to the > rest of the program via a single simple interf