Updating how to calculate the ENGINE_ROOT path based on the CURRENT_PATH value

This commit is contained in:
spham
2021-04-15 13:06:27 -07:00
parent dbae71c511
commit 66517b22e0
@@ -20,7 +20,8 @@ import logging
CURRENT_PATH = pathlib.Path(os.path.dirname(__file__)).absolute()
ENGINE_ROOT = CURRENT_PATH.parent.parent.parent.parent
# The engine root is based on the location of this file (<ENGINE_ROOT>/scripts/build/Platform/Android). Walk up to calculate the engine root
ENGINE_ROOT = CURRENT_PATH.parents[3]
class AndroidEmuError(Exception):