mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
tools: Fix menuconfig for Python 3
This commit is contained in:
parent
20742db676
commit
7ab43bffde
@ -35,9 +35,11 @@ def action_extensions(base_actions, project_path):
|
|||||||
Menuconfig target is build_target extended with the style argument for setting the value for the environment
|
Menuconfig target is build_target extended with the style argument for setting the value for the environment
|
||||||
variable.
|
variable.
|
||||||
"""
|
"""
|
||||||
# The subprocess lib cannot accept environment variables as "unicode" . This is a problem
|
if sys.version_info[0] < 3:
|
||||||
# only in Python 2.
|
# The subprocess lib cannot accept environment variables as "unicode".
|
||||||
os.environ['MENUCONFIG_STYLE'] = style.encode(sys.getfilesystemencoding() or 'utf-8')
|
# This encoding step is required only in Python 2.
|
||||||
|
style = style.encode(sys.getfilesystemencoding() or 'utf-8')
|
||||||
|
os.environ['MENUCONFIG_STYLE'] = style
|
||||||
build_target(target_name, ctx, args)
|
build_target(target_name, ctx, args)
|
||||||
|
|
||||||
def fallback_target(target_name, ctx, args):
|
def fallback_target(target_name, ctx, args):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user