diff options
| author | Meco Jianting Man <[email protected]> | 2021-04-10 14:00:43 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2021-04-10 14:00:43 +0800 |
| commit | b2f23f2a96a960db5464ee2a03cddda909b2c3a4 (patch) | |
| tree | 68630b709427eb3b4c50ef1660859f4d6dd83553 /tools/eclipse.py | |
| parent | 342b0a3b1f72e874c8e033ffc267bc581f548054 (diff) | |
| parent | 4dc6d002167edcb482b64be9d343de8a167cc3be (diff) | |
Merge pull request #37 from RT-Thread/master
同步官方
Diffstat (limited to 'tools/eclipse.py')
| -rw-r--r-- | tools/eclipse.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/eclipse.py b/tools/eclipse.py index 4d5e28e02e..6498c1c9f6 100644 --- a/tools/eclipse.py +++ b/tools/eclipse.py @@ -212,7 +212,7 @@ def HandleToolOption(tools, env, project, reset): linker_nostart_option = option elif option.get('id').find('linker.libs') != -1: linker_libs_option = option - elif option.get('id').find('linker.paths') != -1 and env.has_key('LIBPATH'): + elif option.get('id').find('linker.paths') != -1 and 'LIBPATH' in env: linker_paths_option = option elif option.get('id').find('linker.usenewlibnano') != -1: linker_newlib_nano_option = option @@ -317,7 +317,7 @@ def HandleToolOption(tools, env, project, reset): option.remove(item) # add new libs - if env.has_key('LIBS'): + if 'LIBS' in env: for lib in env['LIBS']: formatedLib = ConverToRttEclipseLibFormat(lib) SubElement(option, 'listOptionValue', { |
