mujoco-cn / scripts /run.ps1
ywsldxk1's picture
Publish mujoco-cn source and documentation
deacd13 verified
Raw History Blame Contribute Delete
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." }