title: SLURM squeue format argument fails from subprocess.Popen
body: <p>I'm trying to call the <a href="https://slurm.schedmd.com/squeue.html" rel="nofollow noreferrer">SLURM squeue</a> from a python script.  The command,</p>
  
  <p><code>/usr/bin/squeue --Format=username,jobid,name,timeleft</code></p>
  
  <p>Works fine from the command line, but fails from <a href="https://docs.python.org/3/library/subprocess.html#subprocess.Popen" rel="nofollow noreferrer"><code>subprocess.Popen</code></a> with:</p>
  
  <pre><code>    p = subprocess.Popen(command, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
    File "/n/home00/DilithiumMatrix/.conda/envs/py35/lib/python3.5/subprocess.py", line 947, in __init__
      restore_signals, start_new_session)
    File "/n/home00/DilithiumMatrix/.conda/envs/py35/lib/python3.5/subprocess.py", line 1551, in _execute_child
      raise child_exception_type(errno_num, err_msg)
  FileNotFoundError: [Errno 2] No such file or directory: '/usr/bin/squeue --Format=username,jobid,name,timeleft'
  </code></pre>
  
  <p>MWE:</p>
  
  <pre><code>import subprocess
  command = "/usr/bin/squeue --Format=username,jobid,name,timeleft"
  p = subprocess.Popen(command, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
  text = p.stdout.read()
  print(text)
  </code></pre>
  
  <p><code>/usr/bin/squeue</code> works fine from both the command line or <code>Popen</code>.</p>
  
  <p>Could it be failing because it requires some information about the user/group that's executing the  <code>squeue</code> command and that is (somehow) lost when running via python?  What else could be causing this?</p>