title: Permission Denied Error with subprocess.call()
body: <p>Im trying to convert some nrrd files to Dicom files,and i have this code snippet </p>
  
  <pre><code>NRRD_TO_DICOM = '/mnt/sdc1/user/6363/'
  def NRRDToDICOM(filename, output_folder_name):
      subprocess.call([NRRD_TO_DICOM, filename, output_folder_name])
  
  NRRDToDICOM('ARTERIAL.nrrd', '/mnt/sdc1/user/6363/ARTERIAL/')
  </code></pre>
  
  <p>I tried running this from my jupyter notebook,but it gives me </p>
  
  <pre><code> PermissionError                           
  
  Traceback (most recent call last)
  &lt;ipython-input-6-5ee279d7c7db&gt; in &lt;module&gt;()
        3     subprocess.call([NRRD_TO_DICOM, filename, output_folder_name])
        4 
  ----&gt; 5 NRRDToDICOM('ARTERIAL.nrrd', '/mnt/sdc1/Ryan/6363/ARTERIAL/')
  
  &lt;ipython-input-6-5ee279d7c7db&gt; in NRRDToDICOM(filename, output_folder_name)
        1 NRRD_TO_DICOM = '/mnt/sdc1/Ryan/6363/'
        2 def NRRDToDICOM(filename, output_folder_name):
  ----&gt; 3     subprocess.call([NRRD_TO_DICOM, filename, output_folder_name])
        4 
        5 NRRDToDICOM('ARTERIAL.nrrd', '/mnt/sdc1/Ryan/6363/ARTERIAL/')
  
  PermissionError: [Errno 13] Permission denied
  </code></pre>
  
  <p>After which i saved the saved the file as a <code>py</code> file and ran it from the terminal after doing</p>
  
  <p><code>chmod +x /mnt/sdc1/user/6363/ARTERIAL/</code></p>
  
  <p><code>chmod +x  /mnt/sdc1/user/6363/</code></p>
  
  <p>But the same error persists,
  Any suggestions on how i may fix this will be very helpful,Thanks in advance.</p>