Use HF_HOME env variable (#753)

This commit is contained in:
Simon Alibert
2025-02-19 14:49:46 +01:00
committed by GitHub
parent fbf2f2222a
commit 2487228ea7
5 changed files with 28 additions and 13 deletions

View File

@@ -581,9 +581,9 @@ def test_create_branch():
def test_dataset_feature_with_forward_slash_raises_error():
# make sure dir does not exist
from lerobot.common.datasets.lerobot_dataset import LEROBOT_HOME
from lerobot.common.constants import HF_LEROBOT_HOME
dataset_dir = LEROBOT_HOME / "lerobot/test/with/slash"
dataset_dir = HF_LEROBOT_HOME / "lerobot/test/with/slash"
# make sure does not exist
if dataset_dir.exists():
dataset_dir.rmdir()