/[escript]/trunk/site_scons/site_init.py
ViewVC logotype

Diff of /trunk/site_scons/site_init.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 4295 by caltinay, Fri Mar 8 04:42:01 2013 UTC revision 4300 by caltinay, Mon Mar 11 00:50:19 2013 UTC
# Line 73  def findLibWithHeader(env, libs, header, Line 73  def findLibWithHeader(env, libs, header,
73      return inc_path, lib_path      return inc_path, lib_path
74    
75  def detectModule(env, module):  def detectModule(env, module):
76      if env['pythoncmd']=='python':      p=subprocess.call([env['pythoncmd'],'-c','import %s'%module])
77          try:      if p != 0:
78              __import__(module)          env[module] = False
79          except ImportError:          return False
             env[module] = False  
             return False  
     else:  
         p=subprocess.call([env['pythoncmd'],'-c','import %s'%module])  
         if p!=0:  
             env[module] = False  
             return False  
80      env[module] = True      env[module] = True
81      return True      return True
82    

Legend:
Removed from v.4295  
changed lines
  Added in v.4300

  ViewVC Help
Powered by ViewVC 1.1.26