Fix path to egg file
This commit is contained in:
parent
abc4789a03
commit
b10484f5c6
|
@ -1,5 +1,3 @@
|
||||||
#!/usr/bin/env python
|
|
||||||
|
|
||||||
# Copyright (c) 2019 Computer Vision Center (CVC) at the Universitat Autonoma de
|
# Copyright (c) 2019 Computer Vision Center (CVC) at the Universitat Autonoma de
|
||||||
# Barcelona (UAB).
|
# Barcelona (UAB).
|
||||||
#
|
#
|
||||||
|
@ -7,16 +5,12 @@
|
||||||
# For a copy, see <https://opensource.org/licenses/MIT>.
|
# For a copy, see <https://opensource.org/licenses/MIT>.
|
||||||
# Provides map data for users.
|
# Provides map data for users.
|
||||||
|
|
||||||
# ==============================================================================
|
|
||||||
# -- imports -------------------------------------------------------------------
|
|
||||||
# ==============================================================================
|
|
||||||
|
|
||||||
import glob
|
import glob
|
||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
try:
|
try:
|
||||||
sys.path.append(glob.glob('**/carla-*%d.%d-%s.egg' % (
|
sys.path.append(glob.glob('dist/carla-*%d.%d-%s.egg' % (
|
||||||
sys.version_info.major,
|
sys.version_info.major,
|
||||||
sys.version_info.minor,
|
sys.version_info.minor,
|
||||||
'win-amd64' if os.name == 'nt' else 'linux-x86_64'))[0])
|
'win-amd64' if os.name == 'nt' else 'linux-x86_64'))[0])
|
||||||
|
|
|
@ -68,7 +68,7 @@ except ImportError:
|
||||||
# -- find carla module ---------------------------------------------------------
|
# -- find carla module ---------------------------------------------------------
|
||||||
# ==============================================================================
|
# ==============================================================================
|
||||||
try:
|
try:
|
||||||
sys.path.append(glob.glob('**/carla-*%d.%d-%s.egg' % (
|
sys.path.append(glob.glob('../carla/dist/carla-*%d.%d-%s.egg' % (
|
||||||
sys.version_info.major,
|
sys.version_info.major,
|
||||||
sys.version_info.minor,
|
sys.version_info.minor,
|
||||||
'win-amd64' if os.name == 'nt' else 'linux-x86_64'))[0])
|
'win-amd64' if os.name == 'nt' else 'linux-x86_64'))[0])
|
||||||
|
|
|
@ -18,7 +18,7 @@ import os
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
try:
|
try:
|
||||||
sys.path.append(glob.glob('**/*%d.%d-%s.egg' % (
|
sys.path.append(glob.glob('../carla/dist/carla-*%d.%d-%s.egg' % (
|
||||||
sys.version_info.major,
|
sys.version_info.major,
|
||||||
sys.version_info.minor,
|
sys.version_info.minor,
|
||||||
'win-amd64' if os.name == 'nt' else 'linux-x86_64'))[0])
|
'win-amd64' if os.name == 'nt' else 'linux-x86_64'))[0])
|
||||||
|
|
|
@ -54,7 +54,7 @@ import os
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
try:
|
try:
|
||||||
sys.path.append(glob.glob('**/carla-*%d.%d-%s.egg' % (
|
sys.path.append(glob.glob('../carla/dist/carla-*%d.%d-%s.egg' % (
|
||||||
sys.version_info.major,
|
sys.version_info.major,
|
||||||
sys.version_info.minor,
|
sys.version_info.minor,
|
||||||
'win-amd64' if os.name == 'nt' else 'linux-x86_64'))[0])
|
'win-amd64' if os.name == 'nt' else 'linux-x86_64'))[0])
|
||||||
|
|
|
@ -31,7 +31,7 @@ import os
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
try:
|
try:
|
||||||
sys.path.append(glob.glob('**/carla-*%d.%d-%s.egg' % (
|
sys.path.append(glob.glob('../carla/dist/carla-*%d.%d-%s.egg' % (
|
||||||
sys.version_info.major,
|
sys.version_info.major,
|
||||||
sys.version_info.minor,
|
sys.version_info.minor,
|
||||||
'win-amd64' if os.name == 'nt' else 'linux-x86_64'))[0])
|
'win-amd64' if os.name == 'nt' else 'linux-x86_64'))[0])
|
||||||
|
|
|
@ -39,7 +39,7 @@ import os
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
try:
|
try:
|
||||||
sys.path.append(glob.glob('**/carla-*%d.%d-%s.egg' % (
|
sys.path.append(glob.glob('../carla/dist/carla-*%d.%d-%s.egg' % (
|
||||||
sys.version_info.major,
|
sys.version_info.major,
|
||||||
sys.version_info.minor,
|
sys.version_info.minor,
|
||||||
'win-amd64' if os.name == 'nt' else 'linux-x86_64'))[0])
|
'win-amd64' if os.name == 'nt' else 'linux-x86_64'))[0])
|
||||||
|
|
|
@ -11,7 +11,7 @@ import os
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
try:
|
try:
|
||||||
sys.path.append(glob.glob('**/*%d.%d-%s.egg' % (
|
sys.path.append(glob.glob('../carla/dist/carla-*%d.%d-%s.egg' % (
|
||||||
sys.version_info.major,
|
sys.version_info.major,
|
||||||
sys.version_info.minor,
|
sys.version_info.minor,
|
||||||
'win-amd64' if os.name == 'nt' else 'linux-x86_64'))[0])
|
'win-amd64' if os.name == 'nt' else 'linux-x86_64'))[0])
|
||||||
|
|
|
@ -11,7 +11,7 @@ import os
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
try:
|
try:
|
||||||
sys.path.append(glob.glob('**/*%d.%d-%s.egg' % (
|
sys.path.append(glob.glob('../carla/dist/carla-*%d.%d-%s.egg' % (
|
||||||
sys.version_info.major,
|
sys.version_info.major,
|
||||||
sys.version_info.minor,
|
sys.version_info.minor,
|
||||||
'win-amd64' if os.name == 'nt' else 'linux-x86_64'))[0])
|
'win-amd64' if os.name == 'nt' else 'linux-x86_64'))[0])
|
||||||
|
|
|
@ -11,7 +11,7 @@ import os
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
try:
|
try:
|
||||||
sys.path.append(glob.glob('**/*%d.%d-%s.egg' % (
|
sys.path.append(glob.glob('../carla/dist/carla-*%d.%d-%s.egg' % (
|
||||||
sys.version_info.major,
|
sys.version_info.major,
|
||||||
sys.version_info.minor,
|
sys.version_info.minor,
|
||||||
'win-amd64' if os.name == 'nt' else 'linux-x86_64'))[0])
|
'win-amd64' if os.name == 'nt' else 'linux-x86_64'))[0])
|
||||||
|
|
|
@ -13,7 +13,7 @@ import os
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
try:
|
try:
|
||||||
sys.path.append(glob.glob('**/*%d.%d-%s.egg' % (
|
sys.path.append(glob.glob('../carla/dist/carla-*%d.%d-%s.egg' % (
|
||||||
sys.version_info.major,
|
sys.version_info.major,
|
||||||
sys.version_info.minor,
|
sys.version_info.minor,
|
||||||
'win-amd64' if os.name == 'nt' else 'linux-x86_64'))[0])
|
'win-amd64' if os.name == 'nt' else 'linux-x86_64'))[0])
|
||||||
|
|
|
@ -11,7 +11,7 @@ import os
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
try:
|
try:
|
||||||
sys.path.append(glob.glob('**/*%d.%d-%s.egg' % (
|
sys.path.append(glob.glob('../carla/dist/carla-*%d.%d-%s.egg' % (
|
||||||
sys.version_info.major,
|
sys.version_info.major,
|
||||||
sys.version_info.minor,
|
sys.version_info.minor,
|
||||||
'win-amd64' if os.name == 'nt' else 'linux-x86_64'))[0])
|
'win-amd64' if os.name == 'nt' else 'linux-x86_64'))[0])
|
||||||
|
|
|
@ -11,7 +11,7 @@ import os
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
try:
|
try:
|
||||||
sys.path.append(glob.glob('**/*%d.%d-%s.egg' % (
|
sys.path.append(glob.glob('../carla/dist/carla-*%d.%d-%s.egg' % (
|
||||||
sys.version_info.major,
|
sys.version_info.major,
|
||||||
sys.version_info.minor,
|
sys.version_info.minor,
|
||||||
'win-amd64' if os.name == 'nt' else 'linux-x86_64'))[0])
|
'win-amd64' if os.name == 'nt' else 'linux-x86_64'))[0])
|
||||||
|
|
|
@ -11,7 +11,7 @@ import os
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
try:
|
try:
|
||||||
sys.path.append(glob.glob('**/*%d.%d-%s.egg' % (
|
sys.path.append(glob.glob('../carla/dist/carla-*%d.%d-%s.egg' % (
|
||||||
sys.version_info.major,
|
sys.version_info.major,
|
||||||
sys.version_info.minor,
|
sys.version_info.minor,
|
||||||
'win-amd64' if os.name == 'nt' else 'linux-x86_64'))[0])
|
'win-amd64' if os.name == 'nt' else 'linux-x86_64'))[0])
|
||||||
|
|
|
@ -11,7 +11,7 @@ import os
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
try:
|
try:
|
||||||
sys.path.append(glob.glob('**/*%d.%d-%s.egg' % (
|
sys.path.append(glob.glob('../carla/dist/carla-*%d.%d-%s.egg' % (
|
||||||
sys.version_info.major,
|
sys.version_info.major,
|
||||||
sys.version_info.minor,
|
sys.version_info.minor,
|
||||||
'win-amd64' if os.name == 'nt' else 'linux-x86_64'))[0])
|
'win-amd64' if os.name == 'nt' else 'linux-x86_64'))[0])
|
||||||
|
|
|
@ -11,7 +11,7 @@ import os
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
try:
|
try:
|
||||||
sys.path.append(glob.glob('**/*%d.%d-%s.egg' % (
|
sys.path.append(glob.glob('../carla/dist/carla-*%d.%d-%s.egg' % (
|
||||||
sys.version_info.major,
|
sys.version_info.major,
|
||||||
sys.version_info.minor,
|
sys.version_info.minor,
|
||||||
'win-amd64' if os.name == 'nt' else 'linux-x86_64'))[0])
|
'win-amd64' if os.name == 'nt' else 'linux-x86_64'))[0])
|
||||||
|
|
|
@ -10,7 +10,7 @@ import sys
|
||||||
import unittest
|
import unittest
|
||||||
|
|
||||||
try:
|
try:
|
||||||
sys.path.append(glob.glob('../../dist/carla-*%d.%d-%s.egg' % (
|
sys.path.append(glob.glob('../../carla/dist/carla-*%d.%d-%s.egg' % (
|
||||||
sys.version_info.major,
|
sys.version_info.major,
|
||||||
sys.version_info.minor,
|
sys.version_info.minor,
|
||||||
'win-amd64' if os.name == 'nt' else 'linux-x86_64'))[0])
|
'win-amd64' if os.name == 'nt' else 'linux-x86_64'))[0])
|
||||||
|
|
|
@ -9,7 +9,7 @@ import os
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
try:
|
try:
|
||||||
sys.path.append(glob.glob('../../dist/carla-*%d.%d-%s.egg' % (
|
sys.path.append(glob.glob('../../carla/dist/carla-*%d.%d-%s.egg' % (
|
||||||
sys.version_info.major,
|
sys.version_info.major,
|
||||||
sys.version_info.minor,
|
sys.version_info.minor,
|
||||||
'win-amd64' if os.name == 'nt' else 'linux-x86_64'))[0])
|
'win-amd64' if os.name == 'nt' else 'linux-x86_64'))[0])
|
||||||
|
|
|
@ -13,7 +13,7 @@ import os
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
try:
|
try:
|
||||||
sys.path.append(glob.glob('**/*%d.%d-%s.egg' % (
|
sys.path.append(glob.glob('../carla/dist/carla-*%d.%d-%s.egg' % (
|
||||||
sys.version_info.major,
|
sys.version_info.major,
|
||||||
sys.version_info.minor,
|
sys.version_info.minor,
|
||||||
'win-amd64' if os.name == 'nt' else 'linux-x86_64'))[0])
|
'win-amd64' if os.name == 'nt' else 'linux-x86_64'))[0])
|
||||||
|
|
|
@ -44,7 +44,7 @@ import subprocess
|
||||||
import threading
|
import threading
|
||||||
|
|
||||||
try:
|
try:
|
||||||
sys.path.append(glob.glob('**/carla-*%d.%d-%s.egg' % (
|
sys.path.append(glob.glob('../carla/dist/carla-*%d.%d-%s.egg' % (
|
||||||
sys.version_info.major,
|
sys.version_info.major,
|
||||||
sys.version_info.minor,
|
sys.version_info.minor,
|
||||||
'win-amd64' if os.name == 'nt' else 'linux-x86_64'))[0])
|
'win-amd64' if os.name == 'nt' else 'linux-x86_64'))[0])
|
||||||
|
|
|
@ -13,7 +13,7 @@ import os
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
try:
|
try:
|
||||||
sys.path.append(glob.glob('../dist/carla-*%d.%d-%s.egg' % (
|
sys.path.append(glob.glob('../carla/dist/carla-*%d.%d-%s.egg' % (
|
||||||
sys.version_info.major,
|
sys.version_info.major,
|
||||||
sys.version_info.minor,
|
sys.version_info.minor,
|
||||||
'win-amd64' if os.name == 'nt' else 'linux-x86_64'))[0])
|
'win-amd64' if os.name == 'nt' else 'linux-x86_64'))[0])
|
||||||
|
|
Loading…
Reference in New Issue