diff --git a/metadrive/engine/base_engine.py b/metadrive/engine/base_engine.py index 68d1541a6..f71aec015 100644 --- a/metadrive/engine/base_engine.py +++ b/metadrive/engine/base_engine.py @@ -1,5 +1,5 @@ import logging -from metadrive.engine.asset_loader import AssetLoader + from metadrive.version import VERSION, asset_version import os from metadrive.pull_asset import pull_asset @@ -692,6 +692,7 @@ def warmup(self): @staticmethod def try_pull_asset(): + from metadrive.engine.asset_loader import AssetLoader msg = "Assets folder doesn't exist. Begin to download assets..." if not os.path.exists(AssetLoader.asset_path): AssetLoader.logger.warning(msg)