diff options
| author | liuxianliang <[email protected]> | 2021-04-10 18:03:18 +0800 |
|---|---|---|
| committer | liuxianliang <[email protected]> | 2021-04-10 18:03:18 +0800 |
| commit | afe6dd9fe5eef463fdc968fa11c27e305ef1fb9a (patch) | |
| tree | 1b3609a686ff4f05e84d08b4c6ca666d1ece37f3 /tools/eclipse.py | |
| parent | 3db7a98a18e461236d418e0670de5d8905b11749 (diff) | |
| parent | 4dc6d002167edcb482b64be9d343de8a167cc3be (diff) | |
Merge branch 'master' of https://github.com/RT-Thread/rt-thread into develop_one
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', { |
