Skip to content

Commit

Permalink
remove import check
Browse files Browse the repository at this point in the history
  • Loading branch information
Robin Chen committed Jan 6, 2022
1 parent 852ed46 commit cc59cf6
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions core/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@

SIMULATORS = ['carla', 'metadrive']

if 'carla' in SIMULATORS:
try:
import carla
except:
raise ImportError("Import carla failed! Please install carla Python API first.")
if 'metadrive' in SIMULATORS:
try:
import metadrive
except:
raise ImportError("Import metadrive failed! Please install metadrive simulator first.")
# if 'carla' in SIMULATORS:
# try:
# import carla
# except:
# raise ImportError("Import carla failed! Please install carla Python API first.")
# if 'metadrive' in SIMULATORS:
# try:
# import metadrive
# except:
# raise ImportError("Import metadrive failed! Please install metadrive simulator first.")

0 comments on commit cc59cf6

Please sign in to comment.