Merge pull request #1384 from kartik144/master
Fix to locate carla python package in performance_benchmark.py
This commit is contained in:
commit
5a11e3d577
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue