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:
parent
780b28ead8
commit
8f04b54014
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue