title: Why do single executable created from PyInstaller for Centos has to be ran from one folder above the executable file, i.e. the 'dist' folder
body: <p>I created executable in windows and centos using pyinstaller. I used --onefile attribute which creates a 'dist' folder with single executable.</p>
  
  <pre><code>C:\Users\myprojects\blog&gt; pyinstaller blog.py --onefile
  </code></pre>
  
  <p>In windows, I can run executable from inside the 'dist' folder. For e.g. </p>
  
  <pre><code>C:\Users\myprojects\blog\dist&gt;blog.exe
  </code></pre>
  
  <p>In Centos, I cannot run it from inside the 'dist' folder. I have to go outside dist folder to run it. For e.g. </p>
  
  <pre><code>C:/Users/myprojects/blog&gt;dist/blog
  </code></pre>
  
  <p>What is the cause of this?</p>