Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
pengzhenghao committed Oct 18, 2023
1 parent e2cb6b6 commit 3d0f343
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions metadrive/pull_asset.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import shutil
import urllib.request
import zipfile
from filelock import Filelock
import filelock

from metadrive.constants import VERSION
from metadrive.engine.logger import get_logger
Expand Down Expand Up @@ -62,7 +62,7 @@ def pull_asset(update):
urllib.request.urlretrieve(ASSET_URL, zip_path, MyProgressBar())

# Extract the zip file to the desired location
lock = FileLock(zip_lock)
lock = filelock.FileLock(zip_lock)
with lock:
with zipfile.ZipFile(zip_path, 'r') as zip_ref:
zip_ref.extractall(TARGET_DIR)
Expand Down

0 comments on commit 3d0f343

Please sign in to comment.