Make executable symbolic link in Python?
<p>I have a file called <code>client.py</code>. I created a symbolic link called <code>incro</code> using </p>

<pre><code>ln -s client.py incro
</code></pre>

<p>How do I make this script executable and move it to my bin (I'm on Linux using Ubuntu, with a bash terminal), under the name of <code>incro</code>? So that I will be able to run</p>

<pre><code>incro
</code></pre>

<p>I have the proper sha-bang. What else do I need to do?</p>

<p>Put the link in your <code>bin</code> directory, not the current directory:</p>

<pre><code>ln -s $PWD/client.py ~/bin/incro
</code></pre>

<p>You should also have <code>~/bin</code> in your <code>$PATH</code> so that you can run programs that are in there.</p>

<p>And if the script isn't already executable, add that:</p>

<pre><code>chmod +x client.py
</code></pre>

python bash bin