title: calling python script from another script
body: <p>i'm trying to get simple python script to call another script, just in order to understand better how it's working. The 'main' code goes like this:</p>
  
  <pre><code>#!/usr/bin/python
  import subprocess
  subprocess.call('kvadrat.py')
  </code></pre>
  
  <p>and the script it calls - <code>kvadrat.py</code>:</p>
  
  <pre><code>#!/usr/bin/python
  def kvadriranje(x):
      kvadrat = x * x
      return kvadrat
  
  print kvadriranje(5)
  </code></pre>
  
  <p>Called script works on its own, but when called through 'main' script error occurs:</p>
  
  <pre><code>Traceback (most recent call last):
    File "/Users/user/Desktop/Python/General Test.py", line 5, in &lt;module&gt;
      subprocess.call('kvadrat.py')
    File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/subprocess.py", line 444, in call
    File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/subprocess.py", line 595, in __init__
    File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/subprocess.py", line 1106, in _execute_child
  OSError: [Errno 2] No such file or directory
  </code></pre>
  
  <p>Obviously something's wrong, but being a beginner don't see what.</p>