-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun-dev.ps1
More file actions
21 lines (17 loc) · 730 Bytes
/
run-dev.ps1
File metadata and controls
21 lines (17 loc) · 730 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
$ErrorActionPreference = "Stop"
$windowsRoot = Split-Path -Parent $MyInvocation.MyCommand.Path
$repoRoot = Split-Path -Parent $windowsRoot
$venvPythonw = Join-Path $repoRoot ".venv\Scripts\pythonw.exe"
$venvPython = Join-Path $repoRoot ".venv\Scripts\python.exe"
$entryPoint = Join-Path $windowsRoot "CodexControlWindows.pyw"
if (Test-Path -LiteralPath $venvPythonw) {
$runtime = $venvPythonw
} elseif (Test-Path -LiteralPath $venvPython) {
$runtime = $venvPython
} else {
throw "Virtual environment not found under $repoRoot\\.venv\\Scripts"
}
Remove-Item Env:TCL_LIBRARY -ErrorAction SilentlyContinue
Remove-Item Env:TK_LIBRARY -ErrorAction SilentlyContinue
$env:PYTHONPATH = $windowsRoot
& $runtime $entryPoint