carla/PythonAPI/test/unit/__init__.py

18 lines
489 B
Python
Raw Normal View History

2019-03-15 03:19:29 +08:00
# Copyright (c) 2019 Computer Vision Center (CVC) at the Universitat Autonoma de
2018-07-04 17:12:14 +08:00
# Barcelona (UAB).
#
# This work is licensed under the terms of the MIT license.
# For a copy, see <https://opensource.org/licenses/MIT>.
2018-12-22 01:00:49 +08:00
import glob
import os
2018-07-04 17:12:14 +08:00
import sys
2018-12-22 01:00:49 +08:00
try:
2019-03-29 02:15:13 +08:00
sys.path.append(glob.glob('../../carla/dist/carla-*%d.%d-%s.egg' % (
2018-12-22 01:00:49 +08:00
sys.version_info.major,
sys.version_info.minor,
'win-amd64' if os.name == 'nt' else 'linux-x86_64'))[0])
except IndexError:
pass