소스 검색

[tools] Remove has_key methods to improve compatibility with Scons version

iysheng 3 년 전
부모
커밋
0e30fac069
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      tools/makefile.py

+ 2 - 2
tools/makefile.py

@@ -51,11 +51,11 @@ def TargetMakefile(env):
     if 'CXXFLAGS' in dir(rtconfig):
         make.write('CXXFLAGS :=%s' % (rtconfig.CXXFLAGS))
         make.write('\n')
-    if env.has_key('LIBS'):
+    if ('LIBS' in env):
         make.write('EXTERN_LIB := ')
         for tlib in env['LIBS']:
             make.write('-l%s ' % (tlib))
-        if env.has_key('LIBPATH'):
+        if ('LIBPATH' in env):
             for tlibpath in env['LIBPATH']:
                 make.write('-L%s ' % (tlibpath))
         make.write('\n')