blob: e5fbe8e551440955fb45aa8c7a3bd7a974238dd0 [file] [log] [blame]
Constants that come from the environment. These are in a separate module so
that they can be mocked by tests if necessary.
import os
from pathlib import Path
import sys
FUCHSIA_DIR = Path(os.environ["FUCHSIA_DIR"])
assert FUCHSIA_DIR.exists()
with open(FUCHSIA_DIR / ".fx-build-dir") as f:
BUILD_DIR = os.path.join(FUCHSIA_DIR,
if sys.platform.startswith('linux'):
PLATFORM = 'linux'
elif sys.platform == 'darwin':
PLATFORM = 'mac'
print("Unsupported platform: " + sys.platform)