   Embedded Python and PhysicsFS
  Ok, so bitting my tongue, I decided to embed Python into my engine and replace Lua because OOP in lua is a joke and exposing game objects to it is too much of a hassle and quite a hack.So, anyway, I use PhysFS to keep game data into a compressed archive, which means, as far as I know, that I need to load files into memory and use "load from memory" methods to access data and pass it to the libraries I am using.The problem is that Python doesn't have such functionality, I can use PyRun_SimpleString or PyRun_String, but that has many downsides:1- I cannot load compiled files.2- Source files must use single line feed ("\n") newlines exclusively because of how PyRun_(Simple)String works.3- I cannot call custom modules or "include" other source files by using "import"And probably some others that are not as obvious.I would really like to keep all of Python functionality intact, as if the scripts were being loaded and run from a standard directory, but I do not wan't to have a myriad python files around or keep all Python code in a single huge source file (I wonder if you can compile several .py files into a single .pyo, I'll look it up).So, the question is, what is the best way to use these things together? has anyone done this before? what was the approach used?Thanks! [smile]   
  You can just add all your python scripts to a single zip file, and add that zip file to the python sys.path. It doesn't even need to be named something.zip, just as long as it's the right format.   ;  You mean Python does have build in zip functionality similar to what .jar is to Java?That would be great as I could just point it to the same file I point PhysFS at.Edit: It can!, Thanks  again! [smile][Edited by - Kwizatz on April 19, 2010 3:07:21 PM]