From: Hariharan S. <h_...@ho...> - 2002-11-19 15:05:14
|
Hi All I am having a peculiar problem. I am creating multiple python interpreter and using the exec function execute the following command. PythonInterpreter interp = new PythonInterpreter(); interp.exec("from abc import *"); where abc is a python file that contains functions etc. Now if i have more than one components that does the same stuff, i see that the namespace is getting over written by the last interpreter value. It is like they are sharing the same namespace, if i change the exec command and use the execfile command like this interp.execfile("abc.py"); then both the interpreter have their own namespace (i.e.) the values are not shared. Any idea what is happening. Any help will be appreciated. Thanks Regards Siju _________________________________________________________________ Add photos to your messages with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail |