Prechádzať zdrojové kódy

Merge branch 'bugfix/idf_tools_pylauncher_v4.1' into 'release/v4.1'

idf_tools.py: fix typo in __PYVENV_LAUNCHER__ env variable name (backport v4.1)

See merge request espressif/esp-idf!7478
Ivan Grokhotkov 6 rokov pred
rodič
commit
d01af529f6
1 zmenil súbory, kde vykonal 1 pridanie a 1 odobranie
  1. 1 1
      tools/idf_tools.py

+ 1 - 1
tools/idf_tools.py

@@ -1356,7 +1356,7 @@ def main(argv):
     # On macOS, unset __PYVENV_LAUNCHER__ variable if it is set.
     # On macOS, unset __PYVENV_LAUNCHER__ variable if it is set.
     # Otherwise sys.executable keeps pointing to the system Python, even when a python binary from a virtualenv is invoked.
     # Otherwise sys.executable keeps pointing to the system Python, even when a python binary from a virtualenv is invoked.
     # See https://bugs.python.org/issue22490#msg283859.
     # See https://bugs.python.org/issue22490#msg283859.
-    os.environ.pop('__PYVENV_LAUNCER__', None)
+    os.environ.pop('__PYVENV_LAUNCHER__', None)
 
 
     if sys.version_info.major == 2:
     if sys.version_info.major == 2:
         try:
         try: