Download scripts/run.ps1 from ywsldxk1/mujoco-cn: direct link, hf CLI and curl.
- Browser
- Download file 505 Bytes
-
https://huggingface.co/ywsldxk1/mujoco-cn/resolve/main/scripts/run.ps1
- Command line
-
hf download hf://ywsldxk1/mujoco-cn/scripts/run.ps1
-
curl -L -o run.ps1 https://huggingface.co/ywsldxk1/mujoco-cn/resolve/main/scripts/run.ps1
505 Bytes
| param() | |
| $ErrorActionPreference = "Stop" | |
| $root = (Resolve-Path -LiteralPath (Join-Path $PSScriptRoot '..')).Path | |
| $python = Join-Path $root '.venv\Scripts\python.exe' | |
| if (-not (Test-Path -LiteralPath $python)) { throw 'Run .\scripts\setup.ps1 first.' } | |
| $env:MENAGERIE_CACHE_DIR = Join-Path $root 'data\mujoco_menagerie_cache' | |
| & $python (Join-Path $root 'app.py') | |
| if (-not $?) { throw 'mujoco-cn did not start successfully.' } | |
| if ($LASTEXITCODE -ne 0) { throw "mujoco-cn exited with code $LASTEXITCODE." } | |