mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-04-30 12:40:41 +02:00
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>
This commit is contained in:
parent
4fad211502
commit
e6e73089e5
1 changed files with 1 additions and 1 deletions
|
|
@ -29,7 +29,7 @@
|
|||
import sys
|
||||
# make it possible to import glapi
|
||||
import os
|
||||
GLAPI = "./%s/../glapi/gen" % (os.path.dirname(sys.argv[0]))
|
||||
GLAPI = os.path.join(".", os.path.dirname(sys.argv[0]), "../glapi/gen")
|
||||
sys.path.append(GLAPI)
|
||||
|
||||
import re
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue