title: How do I include files with pyinstaller?
body: <p>I have made a program with python 3.7 using tkinter aswell. Since I am using external pictures I need to include them when I compile everything to one exe. I have tried doing <code>--add-data "bg.png;files"</code> but I still get this error:</p>
  
  <blockquote>
    <p>_tkinter.TclError: couldn't open "files/bg.png": no such file or directory</p>
  </blockquote>
  
  <p>Here is the code:</p>
  
  <pre><code>image = PhotoImage(file="files/bg.png")
  w = image.width()
  h = image.height()
  x = 316
  y = 246
  mainGui.geometry("%dx%d+%d+%d" % (w, h, x, y))
  panel = Label(mainGui, image=image)
  panel.pack(side='top', fill='both', expand='yes')
  </code></pre>
  
  <p>What am I doing wrong? I have tried <code>--add-binary</code> as well, adding the file to my spec file. Seriously can't figure this out!</p>