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>By default symbolic links follow file permissions so you don't make symbolic link executable, but simply make your client.py file executable.</p>

<p>Command:</p>

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

<p>Creates relative symbolic link so you can't simply copy or move it to other directory.
To make link movable create link to file with absolute path. For example:</p>

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

<p>Or simply create link directly in your <code>bin</code> directory.</p>

python bash bin