Fix import for automatic_control.py

Due to folder structure, the actual version raises an issue: https://github.com/carla-simulator/carla/issues/1756
It can be fixed using another type of import, however the folder structure has to remain the same for it to work.
This commit is contained in:
Jacopo Bartiromo 2019-07-08 16:39:05 +02:00 committed by Néstor Subirón
parent 780b28ead8
commit 8f04b54014
1 changed files with 1 additions and 1 deletions

View File

@ -79,7 +79,7 @@ except IndexError:
# -- add PythonAPI for release mode --------------------------------------------
# ==============================================================================
try:
sys.path.append(glob.glob('PythonAPI')[0])
sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))) + '/carla')
except IndexError:
pass