Skip to content

Commit

Permalink
πŸ› Fix permission
Browse files Browse the repository at this point in the history
  • Loading branch information
yhs0602 committed Dec 14, 2024
1 parent 4380984 commit bb079f4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
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.26"
version = "2.5.27"
description = "Lightweight Minecraft Environment for Reinforcement Learning"
readme = "README.md"
license = { file = "LICENSE" }
Expand Down
5 changes: 5 additions & 0 deletions src/craftground/environment.py
Original file line number Diff line number Diff line change
Expand Up @@ -465,6 +465,11 @@ def start_server(
my_env["CRAFTGROUND_JVM_NATIVE_TRACKING"] = "detail"
if self.native_debug:
my_env["CRAFGROUND_NATIVE_DEBUG"] = "True"
# configure permission of the gradlew
gradlew_path = os.path.join(self.env_path, "gradlew")
if not os.access(gradlew_path, os.X_OK):
os.chmod(gradlew_path, 0o755)

cmd = "./gradlew runClient -w --no-daemon"
if use_vglrun:
cmd = f"vglrun {cmd}"
Expand Down

0 comments on commit bb079f4

Please sign in to comment.