#!/usr/bin/env python

import sys
import os.path

root = os.path.realpath(os.path.join(__file__, "../../"))

try:
    import habitat
except ImportError:
    # Assumes habitat and habitat-transition have been cloned in the same parent
    # directory

    sys.path.append(os.path.join(os.path.dirname(root), "habitat"))
    import habitat

try:
    import habitat_transition
except ImportError:
    sys.path.append(root)

from habitat.utils.startup import main
from habitat_transition.spacenearus import SpaceNearUs
main(SpaceNearUs)
