FIX: python import
commit2f96e221a3b37081c5eadb2facf70169c7c74da0
authorPaul Merrill <napalminc@gmail.com>
Fri, 5 Apr 2013 00:42:16 +0000 (4 17:42 -0700)
committerPaul Merrill <napalminc@gmail.com>
Fri, 5 Apr 2013 00:46:24 +0000 (4 17:46 -0700)
tree08b193999549134b1546a06159a044ab93a03db9
parentbe9c2f96e26b160ec5f1dd21ba817a74ac042f22
FIX: python import

This patch is actually rather large and represents a significant amount
of hacking. Here is an incomplete list of changes:

- support for Python local variables (large accomplishment :-)
- proper handling of Python imports (also large)
- addition of Bytecode class to wrap around PyCodeObject and contain a
  private local variables
- usage of __init__.py in various places, instead of init.py
25 files changed:
data/base/__init__.py [new file with mode: 0644]
data/base/baseapi/__init__.py [moved from data/base/baseapi/init.py with 100% similarity]
data/base/init.py
src/Makefile
src/Makefile.common
src/area-tmx.cpp
src/area.cpp
src/area.h
src/bytecode.cpp [new file with mode: 0644]
src/bytecode.h [copied from src/scriptinst.h with 55% similarity]
src/entity.cpp
src/entity.h
src/music.cpp
src/python.cpp
src/python.h
src/pyworldfinder.cpp [new file with mode: 0644]
src/pyworldfinder.h [copied from src/scriptinst.h with 54% similarity]
src/reader.cpp
src/reader.h
src/scriptinst.cpp
src/scriptinst.h
src/tile.cpp
src/tile.h
src/world.cpp
src/world.h