title: How to create a Python script standalone
body: <p>I have a script named <code>main.py</code> which needs first that other script is executed. This means that at the top of the script I have included the following:</p>
  
  <pre><code>execfile('other_script.py')
  </code></pre>
  
  <p>So when using PyInstaller in Linux an error appears saying that it can't find this file. How can I fix this?</p>