title: Pyinstaller onefile doesn't find data files
body: <p>I too am trying for the first time to build a simple --onefile exe which includes data files, but Pyinstaller doesn't seem to find them when building the .exe.  A --onedir build seems to work fine.</p>
  
  <p>I'm using the --debug switch at this point as well.  I am able to run the onefile executable and can see that it appears to start working. The program finds the (sys._MEIPASS) temp directory ok (prints the needed directory name as directed) but reports a "no such file or directory" error when it looks for the first data file from the temp directory.  I used archiveviewer.py on the .exe and DIDN'T find the needed data files there-- which seems to be the problem, but I can't figure out why.  Data files for the build are in the directory the spec file describes.  My complete spec file is</p>
  
  <pre><code># -*- mode: python -*-
  
  a = Analysis(['develop6.py'],
           pathex=['C:\\PYINST20'],
           hiddenimports=[],
           hookspath=None)
  
  a.datas += [ ('conlist.txt', 'C:\\pyinst20\\conlist.txt', 'DATA'), ('imageblank.gif', 'C:\\pyinst20\\imageblank.gif', 'DATA')]
  
  pyz = PYZ(a.pure)
  
  exe = EXE(pyz,
        a.scripts,
        a.binaries,
        a.zipfiles,
        a.datas,
        name=os.path.join('dist', 'develop6.exe'),
        debug=True,
        strip=None,
        upx=True,
        console=True )
  </code></pre>