title: Running a bash script to run a python program gives error: permission denied
body: <p>Hi I have a bash script:</p>
  
  <pre><code>#!/bin/bash
  
  declare -a list1
  declare -a list2
  
  list1=("Hello" "there" "honey")
  list2=("More" "strings" "here")
  
  declare -a joined
  
  joined=($(./pytest.py ${list1[@]} ${list2[@]}))
  echo ${joined[@]}
  </code></pre>
  
  <p>Following is the python code <code>pytest.py</code>:</p>
  
  <pre><code>#!/usr/bin/python
  
  import sys
  
  for i in sys.argv:
  print "hi"
  </code></pre>
  
  <p>The error I get is this:</p>
  
  <pre><code>./pybash.sh: line 11: ./pytest.py: Permission denied
  </code></pre>
  
  <p>I have used the following to set the permission of the shell script:</p>
  
  <pre><code> chmod +x pybash.sh
  </code></pre>
  
  <p>It still gives me the same error.
  What am I doing wrong?</p>