Merge pull request #1384 from kartik144/master

Fix to locate carla python package in performance_benchmark.py
This commit is contained in:
Néstor Subirón 2019-03-15 18:04:19 +01:00 committed by GitHub
commit 5a11e3d577
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 11 additions and 0 deletions

View File

@ -29,6 +29,17 @@ import shutil
import subprocess
from tr import tr
import threading
import glob
import os
import sys
try:
sys.path.append(glob.glob('**/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
import carla