aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorMark Lobodzinski <mark@lunarg.com>2018-05-22 14:41:57 -0600
committerMark Lobodzinski <mark@lunarg.com>2018-05-22 14:44:46 -0600
commite96fc8582a7038c1c48698b80716675a5d59a436 (patch)
tree64f428e9a3f1f22cffb878778fff04497ef42518 /scripts
parent2478fee6df5eae86059efbc30ac764c1f7bc799a (diff)
downloadusermoji-e96fc8582a7038c1c48698b80716675a5d59a436.tar.xz
scripts: Fix glslang fetch script for odd builds
Used scirpt location instead of current location as basis for glslang component installation.
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/fetch_glslangvalidator.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/fetch_glslangvalidator.py b/scripts/fetch_glslangvalidator.py
index 02b93015..cfee9d1b 100755
--- a/scripts/fetch_glslangvalidator.py
+++ b/scripts/fetch_glslangvalidator.py
@@ -31,7 +31,8 @@ import subprocess
import urllib.request
import zipfile
-REPO_DIR = os.path.join(os.getcwd(), "..")
+SCRIPTS_DIR = os.path.dirname(os.path.abspath(__file__))
+REPO_DIR = os.path.join(SCRIPTS_DIR, '..')
GLSLANG_URL = "https://github.com/KhronosGroup/glslang/releases/download/master-tot"
if __name__ == '__main__':