79399539

Date: 2025-01-30 10:28:11
Score: 1
Natty:
Report link

cwd work only with , shell=True, for example:

subprocess.Popen(command, cwd=path_to_work_dir, shell=True)

Because param cwd is work dir, not path to command.

cwd: Sets the current directory before the child is executed.

Use full path or shell=True. Don't do both

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: kolyaaa pupkin