title: Pack program *and* dynamically loaded files into single executable? (python + pygame, or language agnostic)
body: <p>There are plenty of great answers to questions about making a standalone executable, but I can't figure out how to pack art assets (or dynamically loaded files) into it as well.  Why would I want to do this?  Because it would be great to distribute a simple (throw away) game that lives entirely in a single executable with no installer.</p>
  
  <p>As far as I can tell from searching, there are two basic approaches.</p>
  
  <p>1)  Avoid art assets in favor of content generation.  I could have a program that turns a simple sprite into a RLE pixel-color list that lives in a python script.  Since it's a script, it would get bound up into the exe with a packaging tool. Right?</p>
  
  <p>2)  Use some kind of self-extracting archive that can dump the directory structure into a temp directory (or maybe into memory?), then automatically run the entry point of the program.  </p>
  
  <p>Does what I'm trying to do make sense?  The second option seems so much more sensible, but I'm not sure which tools would be used to accomplish it with python and pygame.  I've used py2exe, but it only packaged python scripts and imported modules.</p>
  
  <p>EDIT:</p>
  
  <p><a href="https://stackoverflow.com/questions/112698/py2exe-generate-single-executable-file">This thread</a> makes me think that you can tell the packaging utility to include program data along with the dependencies.  Is that true?</p>