title: I am trying to convert my python files to exe using pyinstaller. how should i edit my spec file?
body: <p>This is a spec file demo i found. Problem i am total amateur at this. i don't know what changes i need to make. I have two python scripts , from which one will be my executable and other i am using as a module, and also i have one json file.
  this is the code i found</p>
  
  <pre><code>    # -*- mode: python -*-
  a = Analysis(['..\\..\\bin\\kano-burner'],
               pathex=['C:\\Kano\\kano-burners'],
               hiddenimports=[],
               hookspath=None,
               runtime_hooks=None)
  
  
  import os
  import glob
  
  def extra_datas(path):
      def recursive_glob(path, files):
          for file_path in glob.glob(path):
              if os.path.isfile(file_path):
                  files.append(os.path.join(os.getcwd(), file_path))
              recursive_glob('{}/*'.format(file_path), files)
  
      files = []
      extra_datas = []
  
      if os.path.isfile(path):
          files.append(os.path.join(os.getcwd(), path))
      else:
          recursive_glob('{}/*'.format(path), files)
  
      for f in files:
          extra_datas.append((f.split('kano-burners')[1][1:], f, 'DATA'))
      return extra_datas
  
  a.datas += extra_datas(os.path.join(os.getcwd(), '..', '..', 'res'))
  a.datas += extra_datas(os.path.join(os.getcwd(), '..', '..', 'win'))
  a.datas += extra_datas(os.path.join(os.getcwd(), '..', '..', 'DISCLAIMER'))
  
  
  pyz = PYZ(a.pure)
  exe = EXE(pyz,
            a.scripts,
            a.binaries,
            a.zipfiles,
            a.datas,
            name='Kano Burner.exe',
            debug=False,
            strip=None,
            upx=True,
            console=False , icon='..\\..\\res\\icon\\burner_icon.ico')
  </code></pre>