Skip to content

Commit

Permalink
Fix mujoco_compile for windows
Browse files Browse the repository at this point in the history
  • Loading branch information
HoangGiang93 committed Aug 4, 2024
1 parent 5641a84 commit 3c5640f
Showing 1 changed file with 16 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -862,15 +862,22 @@ def main():
os.path.dirname(os.path.abspath(__file__)), "..", "saved"
)
elif os.path.basename(__file__) == "mujoco_compile.py":
save_dir = os.path.join(
os.path.dirname(os.path.abspath(__file__)),
"..",
"..",
"..",
"..",
"..",
"saved",
)
if os.name == "nt":
save_dir = os.path.join(
os.path.dirname(os.path.abspath(__file__)),
"..",
"saved",
)
else:
save_dir = os.path.join(
os.path.dirname(os.path.abspath(__file__)),
"..",
"..",
"..",
"..",
"..",
"saved",
)
else:
raise RuntimeError(f"Unknown file name {os.path.basename(__file__)}")

Expand Down

0 comments on commit 3c5640f

Please sign in to comment.