Skip to content

Commit

Permalink
fix tkinter check
Browse files Browse the repository at this point in the history
  • Loading branch information
th3w1zard1 committed Feb 23, 2024
1 parent b494f5d commit 4070d6c
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions compile/compile_holopatcher.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,11 @@ Write-Host "Initializing python virtual environment..."
. $rootPath/install_python_venv.ps1

# Execute the Python code using the specified interpreter
try {
& $pythonExePath -c "import tkinter; print('Tkinter is available')"

$output = & $pythonExePath -c "import tkinter; print('Tkinter is available')" 2>&1
if ($output -is -not [System.Management.Automation.ErrorRecord]) {
Write-Host "Tkinter is available for $($pythonExePath)"
} catch {
} else {
Write-Host "Tkinter is not available for $($pythonExePath)"
$venvPath = ""
if ($null -ne $env:VIRTUAL_ENV) {
Expand Down

0 comments on commit 4070d6c

Please sign in to comment.