diff --git a/PythonAPI/agents/navigation/global_route_planner.py b/PythonAPI/agents/navigation/global_route_planner.py index 94c1c0c10..c153b59a0 100644 --- a/PythonAPI/agents/navigation/global_route_planner.py +++ b/PythonAPI/agents/navigation/global_route_planner.py @@ -12,7 +12,7 @@ import numpy as np import networkx as nx import carla -from local_planner import RoadOption +from agents.navigation.local_planner import RoadOption class GlobalRoutePlanner(object): diff --git a/PythonAPI/automatic_control.py b/PythonAPI/automatic_control.py index ccc01a104..29515e781 100755 --- a/PythonAPI/automatic_control.py +++ b/PythonAPI/automatic_control.py @@ -73,6 +73,14 @@ try: except IndexError: pass +# ============================================================================== +# -- add PythonAPI for release mode -------------------------------------------- +# ============================================================================== +try: + sys.path.append(glob.glob('PythonAPI')[0]) +except IndexError: + pass + import carla from carla import ColorConverter as cc from agents.navigation.roaming_agent import *