Running a Python Script Inside Another Directory
<p>I have the following Python script inside a directory called 'test' on my Linux desktop:</p>

<pre><code>#!/usr/bin/python

f = open('test.txt','w')
f.write('testing the script')
</code></pre>

<p>So it's <code>/Home/Desktop/test/script.py</code></p>

<p>If I go inside the directory and type <code>./script.py</code> it works fine and creates the test.txt file.</p>

<p>However for some reason I am not able to run the script from the Desktop (<code>/Home/Desktop</code>). I tried <code>./test/script.py</code>, for instance, but didn't work.</p>

<p>The file permissions on the script are <code>755</code>, and on the directory <code>777</code>.</p>

<p>Any help would be appreciated.</p>
