Fix mapi code generator for out-of-tree build
authorJon TURNEY <jon.turney@dronecode.org.uk>
Mon, 14 Jan 2013 15:35:05 +0000 (15:35 +0000)
committerJon TURNEY <jon.turney@dronecode.org.uk>
Wed, 16 Jan 2013 19:53:01 +0000 (19:53 +0000)
commite6e73089e5d78094dd5b36e37c824cc42f54c8c4
tree8b33f463f0ea68304f049a36de3ace783f56893d
parent4fad211502d8fcc6a4906549e6458b3306dcc27c
Fix mapi code generator for out-of-tree build

Use os.path.join() rather than hand-rolling it, so path is correct if
sys.argv[0] returns an absolute path.

(According to the python documentation, it's platform dependent whether
sys.argv[0] is a full pathname or not.  It probably also depends on how
the process was started...)

Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mapi/mapi/mapi_abi.py