title: subprocess usage in web2py
body: <p>I am trying to run a python script from web2py's controller function using subprocess.call method. But the script does not execute from there, but when I am running the same method from inside python shell, it runs without any problems.</p>
  
  <p>The command I wrote in web2py controller's function is:</p>
  
  <pre><code>subprocess.call(['python','script.py', args])
  </code></pre>
  
  <p>where args is a string containing command line arguments I want to pass to the script
  The command I wrote in python shell is:</p>
  
  <pre><code>&gt;&gt;&gt;subprocess.call(['python','script.py','args'])
  </code></pre>
  
  <p>here I am directly passing the arguments. </p>
  
  <p>script.py creates multiple files in directory, but it doesn't do so with web2py.</p>
  
  <p>I have used subprocess multiple times within the web2py controller function without any problem and I have also tried changing the permission of script.py to 777, but it was not of any help either. </p>
  
  <p>Can anyone tell me where my mistake is?</p>