Calling GNU/make from a Python Script

Efrat Regev efrat_regev at yahoo.com
Mon Oct 30 09:08:17 EST 2006


   Hello,

   I need to call GNU/make from within a Python script. This raised some 
problems:
1. The script is not in the directory of the makefile, and changing the 
locations of either is not an option. Consequently, the makefile fails, 
since it can't find the targets/dependencies.
2. After searching around, it seems that os.system(..) should be avoided 
  if there's an alternative. Is there one in this case?

   Many Thanks!

   Efrat



More information about the Python-list mailing list