> Thanks, but can I call it using spawn? No, but you can spawn a python interpreter that calls it. Like this:
spawnv(P_<whatever>, sys.executable, ['-c', 'import myfile; foo()']) But I suggest you use fork - then you can call it in the interpreter itself. -- Regards, Diez B. Roggisch -- http://mail.python.org/mailman/listinfo/python-list