mesa: correctly use os.path.join in our python scripts
authorEmil Velikov <emil.velikov@collabora.com>
Sun, 9 Dec 2018 20:09:49 +0000 (20:09 +0000)
committerEmil Velikov <emil.l.velikov@gmail.com>
Thu, 24 Jan 2019 18:13:24 +0000 (18:13 +0000)
commitca152234e1903f0ad41e6b27c6a0626025e3f80c
treeaa234d28f54aece5416b012a8c17cdf0376b81e9
parent9cc8e125053ec429be6b4640e784a5e3fce57298
mesa: correctly use os.path.join in our python scripts

With Windows in mind, using forward slash isn't the right thing to do.
Even if it just works, we might want to fix it.

As here, use __file__ instead of argv[0] and sys.path.insert over
sys.path.append. With the path tweak being reportedly faster.

Suggested-by: Dylan Baker <dylan@pnwbakers.com>
Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
src/mapi/mapi_abi.py
src/mesa/main/get_hash_generator.py