Fix path to egg file

This commit is contained in:
nsubiron 2019-03-28 19:15:13 +01:00
parent abc4789a03
commit b10484f5c6
20 changed files with 20 additions and 26 deletions

8
PythonAPI/carla/scene_layout.py Executable file → Normal file
View File

@ -1,5 +1,3 @@
#!/usr/bin/env python
# Copyright (c) 2019 Computer Vision Center (CVC) at the Universitat Autonoma de
# Barcelona (UAB).
#
@ -7,16 +5,12 @@
# For a copy, see <https://opensource.org/licenses/MIT>.
# Provides map data for users.
# ==============================================================================
# -- imports -------------------------------------------------------------------
# ==============================================================================
import glob
import os
import sys
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.minor,
'win-amd64' if os.name == 'nt' else 'linux-x86_64'))[0])

View File

@ -68,7 +68,7 @@ except ImportError:
# -- find carla module ---------------------------------------------------------
# ==============================================================================
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.minor,
'win-amd64' if os.name == 'nt' else 'linux-x86_64'))[0])

View File

@ -18,7 +18,7 @@ import os
import sys
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.minor,
'win-amd64' if os.name == 'nt' else 'linux-x86_64'))[0])

View File

@ -54,7 +54,7 @@ import os
import sys
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.minor,
'win-amd64' if os.name == 'nt' else 'linux-x86_64'))[0])

View File

@ -31,7 +31,7 @@ import os
import sys
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.minor,
'win-amd64' if os.name == 'nt' else 'linux-x86_64'))[0])

View File

@ -39,7 +39,7 @@ import os
import sys
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.minor,
'win-amd64' if os.name == 'nt' else 'linux-x86_64'))[0])

View File

@ -11,7 +11,7 @@ import os
import sys
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.minor,
'win-amd64' if os.name == 'nt' else 'linux-x86_64'))[0])

View File

@ -11,7 +11,7 @@ import os
import sys
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.minor,
'win-amd64' if os.name == 'nt' else 'linux-x86_64'))[0])

View File

@ -11,7 +11,7 @@ import os
import sys
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.minor,
'win-amd64' if os.name == 'nt' else 'linux-x86_64'))[0])

View File

@ -13,7 +13,7 @@ import os
import sys
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.minor,
'win-amd64' if os.name == 'nt' else 'linux-x86_64'))[0])

View File

@ -11,7 +11,7 @@ import os
import sys
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.minor,
'win-amd64' if os.name == 'nt' else 'linux-x86_64'))[0])

View File

@ -11,7 +11,7 @@ import os
import sys
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.minor,
'win-amd64' if os.name == 'nt' else 'linux-x86_64'))[0])

View File

@ -11,7 +11,7 @@ import os
import sys
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.minor,
'win-amd64' if os.name == 'nt' else 'linux-x86_64'))[0])

View File

@ -11,7 +11,7 @@ import os
import sys
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.minor,
'win-amd64' if os.name == 'nt' else 'linux-x86_64'))[0])

View File

@ -11,7 +11,7 @@ import os
import sys
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.minor,
'win-amd64' if os.name == 'nt' else 'linux-x86_64'))[0])

View File

@ -10,7 +10,7 @@ import sys
import unittest
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.minor,
'win-amd64' if os.name == 'nt' else 'linux-x86_64'))[0])

View File

@ -9,7 +9,7 @@ import os
import sys
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.minor,
'win-amd64' if os.name == 'nt' else 'linux-x86_64'))[0])

View File

@ -13,7 +13,7 @@ import os
import sys
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.minor,
'win-amd64' if os.name == 'nt' else 'linux-x86_64'))[0])

View File

@ -44,7 +44,7 @@ import subprocess
import threading
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.minor,
'win-amd64' if os.name == 'nt' else 'linux-x86_64'))[0])

View File

@ -13,7 +13,7 @@ import os
import sys
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.minor,
'win-amd64' if os.name == 'nt' else 'linux-x86_64'))[0])