title: How to run Python Script in Nextflow
body: <p>I'm new to Nextflow and I tried to run a Python Script in Nextflow. So I stored the Python Script in the same Folder as the Nextflow Pipeline and tried to run it but I always get this error: <code>.command.sh: line 2: ./example.py: No such file or directory</code>.
  Does anybody encountered the same problem and was capable to solve it?</p>
  <p>My Process looks like this:</p>
  <pre><code>#!/usr/bin/env nextflow
  
  input_ch = Channel.fromPath('data/*.txt')
  
  process foo {
  
      input:
      file x from input_ch
  
      output:
      file &quot;$x&quot; into outputt_ch
  
      &quot;&quot;&quot;
      ./example.py ${x}
      &quot;&quot;&quot;
  
  }
  </code></pre>
  <p>P.S.:My Python Script is executable from the Terminal!</p>
  <p>Thank you in advance!</p>