From 299c8369a70e06878b657bacca854ab863daaa2d Mon Sep 17 00:00:00 2001 From: Jackson Gardner Date: Fri, 10 Mar 2023 06:56:21 -0800 Subject: [PATCH] Find the emsdk by relative path so that this works with the monorepo. (flutter/engine#40207) Find the emsdk by relative path so that this works with the monorepo. --- engine/src/flutter/tools/activate_emsdk.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/engine/src/flutter/tools/activate_emsdk.py b/engine/src/flutter/tools/activate_emsdk.py index 30fd1b0d6d..9b4e3aefcc 100644 --- a/engine/src/flutter/tools/activate_emsdk.py +++ b/engine/src/flutter/tools/activate_emsdk.py @@ -9,7 +9,9 @@ import os import subprocess import sys -EMSDK_ROOT = os.path.join('src', 'buildtools', 'emsdk') +EMSDK_ROOT = os.path.abspath( + os.path.join(__file__, '..', '..', '..', 'buildtools', 'emsdk') +) EMSDK_PATH = os.path.join(EMSDK_ROOT, 'emsdk.py')