On Mon, Oct 20, 2008 at 10:32 PM, gaurav kashyap <[EMAIL PROTECTED]> wrote: > Hi all, > I am using Link-41b parser in my program. > The windows version of it has an .exe file that can be executed using > os.system command > On Linux version,I have a makefile. > > so my question is: > How to run the makefile using some python function.
Use the 'subprocess' module (http://docs.python.org/library/subprocess.html#module-subprocess) to run the 'make' command in the same working directory as the Makefile with the appropriate target as an option. Cheers, Chris -- Follow the path of the Iguana... http://rebertia.com > > Thanks > -- > http://mail.python.org/mailman/listinfo/python-list > -- http://mail.python.org/mailman/listinfo/python-list