Skip to content

Commit

Permalink
πŸ› Fix path
Browse files Browse the repository at this point in the history
  • Loading branch information
yhs0602 committed Dec 14, 2024
1 parent 9d6d317 commit 4380984
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ build-backend = "scikit_build_core.build"

[project]
name = "craftground"
version = "2.5.25"
version = "2.5.26"
description = "Lightweight Minecraft Environment for Reinforcement Learning"
readme = "README.md"
license = { file = "LICENSE" }
Expand Down
5 changes: 2 additions & 3 deletions src/craftground/environment.py
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ def __init__(
self.process = None
if env_path is None:
self.env_path = os.path.join(
os.path.dirname(os.path.dirname(os.path.abspath(__file__))),
os.path.dirname(os.path.abspath(__file__)),
"MinecraftEnv",
)
else:
Expand Down Expand Up @@ -767,6 +767,5 @@ def remove_orphan_java_processes(self):
def get_env_save_path() -> str:
current_file = os.path.abspath(__file__)
current_dir = os.path.dirname(current_file)
parent_dir = os.path.dirname(current_dir)
env_dir = os.path.join(parent_dir, "MinecraftEnv", "run", "saves")
env_dir = os.path.join(current_dir, "MinecraftEnv", "run", "saves")
return env_dir

0 comments on commit 4380984

Please sign in to comment.