0

in bash "env" and in terminalX "env -S" work, in cmd "env" is not an internal or external command, executable program or batch file.

for example:

on Linux :(. venv) ~ rootdir> $ env "browser.config.browser_name = firefox" pytest tests / file.py

on MacOS :(. venv) ~ / rootdir> env -S "browser.config.browser_name = firefox" pytest tests / file.py

but on Win: (. venv) ~/ rootdir> ...?... "browser.config.browser_name = firefox" pytest tests / file.py

1 Answers1

0

Ok, now I got it. Please have a look at the answer List all environment variables from the command line then.

Marco.S
  • 383
  • 2
  • 10
  • thanks for the answer. I just meant, what to replace the command env in Windows command line because cmd.exe says env is not an internal or external command, executable program or batch file. – maann68 Mar 27 '21 at 19:14
  • for example in bash command env communicate "variable=values" which are in conftest.py to pytest. in cmd.exe not. – maann68 Mar 27 '21 at 19:39