title: How to convert python scripts to binary executable using PyInstaller
body: <p>I am working on a project which has below directory structure</p>
  <pre><code>MyPythonProject
      -&gt; configs
          -&gt; appconfig.json
      -&gt; logs
          -&gt; app.log
      -&gt; src
          -&gt; file1.py
          -&gt; file2.py
          -&gt; file3.py 
      app.py
  </code></pre>
  <p><code>app.py</code> is the main executable file which is also depended on python files inside <code>src</code>. I want to convert <code>app.py</code> to <code>app.exe</code> which I can easily do using <code>pyinstaller app.py</code>. This creates a <code>dist</code> folder which has python and all the packages. I can simply copy paste the <code>src</code>, <code>configs</code> and <code>logs</code> into dist and can easily share it with everyone.</p>
  <p>But the problem is I do not want to share python files inside <code>src</code> as it is because it can easily accessed by anyone. I want to convert it into binary executable so that no one can convert or de-compile back into <code>.py</code> files.</p>
  <p>For this, I can use auto generated <code>.pyc</code> files but I believe this can also be de-compiled back to <code>py</code>. Is there any way I can convert into some kind of binary which can never be de-compiled. Does pyinstaller do this. Is there any command available in pyinstaller which while converting <code>app.py</code> also converts rest of the python files into executable. Please help. Thanks</p>