carla/PythonAPI/test/__init__.py

18 lines
480 B
Python
Raw Normal View History

2018-07-04 17:12:14 +08:00
# Copyright (c) 2017 Computer Vision Center (CVC) at the Universitat Autonoma de
# 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:
sys.path.append(glob.glob('../dist/carla-*%d.%d-%s.egg' % (
sys.version_info.major,
sys.version_info.minor,
'win-amd64' if os.name == 'nt' else 'linux-x86_64'))[0])
except IndexError:
pass