forked from platformio/platformio-core
Do not override CWD when executing a package command
This commit is contained in:
@@ -57,7 +57,7 @@ def package_exec_cmd(obj, package, call, args):
|
|||||||
args = [os.environ["PIO_PYTHON_EXE"]] + list(args)
|
args = [os.environ["PIO_PYTHON_EXE"]] + list(args)
|
||||||
result = None
|
result = None
|
||||||
try:
|
try:
|
||||||
run_options = dict(shell=call is not None, env=os.environ, cwd=pkg.path)
|
run_options = dict(shell=call is not None, env=os.environ)
|
||||||
force_click_stream = (obj or {}).get("force_click_stream")
|
force_click_stream = (obj or {}).get("force_click_stream")
|
||||||
if force_click_stream:
|
if force_click_stream:
|
||||||
run_options.update(stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
|
run_options.update(stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
|
||||||
|
Reference in New Issue
Block a user