mirror of
https://github.com/platformio/platformio-core.git
synced 2025-07-30 10:07:14 +02:00
Propagate full PYTHONPATH
This commit is contained in:
@ -359,8 +359,7 @@ def copy_pythonpath_to_osenv():
|
|||||||
if "PYTHONPATH" in os.environ:
|
if "PYTHONPATH" in os.environ:
|
||||||
_PYTHONPATH = os.environ.get("PYTHONPATH").split(os.pathsep)
|
_PYTHONPATH = os.environ.get("PYTHONPATH").split(os.pathsep)
|
||||||
for p in os.sys.path:
|
for p in os.sys.path:
|
||||||
if p not in _PYTHONPATH and (isdir(join(p, "click")) or
|
if p not in _PYTHONPATH:
|
||||||
isdir(join(p, "platformio"))):
|
|
||||||
_PYTHONPATH.append(p)
|
_PYTHONPATH.append(p)
|
||||||
os.environ['PYTHONPATH'] = os.pathsep.join(_PYTHONPATH)
|
os.environ['PYTHONPATH'] = os.pathsep.join(_PYTHONPATH)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user