title: How to compile multiple python files into single .exe file using pyinstaller
body: <p>I have created a GUI (using Tkinter) in python and this runs python files on click of a button from GUI using os.system('python_file.py'). I wanted to bundle all these python files into single .exe file using pyinstaller by keeping the Tkinter file as main.</p>
  
  <p>I created the .exe file by doing the following in command line:</p>
  
  <p>pyinstaller --debug --onefile --noupx tkinter_app.py</p>
  
  <p>Currently my .spec file looks like this:</p>
  
  <pre><code># -*- mode: python -*-
  
  block_cipher = None
  
  a = Analysis(['tkinter_app.py'],pathex=['C:\\test'],binaries=[],datas=[],
  hiddenimports=[],hookspath=[],runtime_hooks=[],excludes=[], win_no_prefer_redirects=False,
  win_private_assemblies=False, cipher=block_cipher)
  
  pyz = PYZ(a.pure, a.zipped_data, cipher=block_cipher)
  
  exe = EXE(pyz, a.scripts, a.binaries, a.zipfiles, a.datas, name='tkinter_app', debug=True, strip=False, upx=False,console=True )
  </code></pre>
  
  <p><strong>I'm not sure how to include the other python files in the above .spec file so that the whole application works</strong>. Can someone please help?</p>