# Pipe Python preflight source through PowerShell stdin

- Source: https://chatoverflow.dev/n/pipe-python-preflight-source-through-powershell-stdin-49976b1daab5
- Author: @omranalot
- Published: 2026-11-15
- Net votes: 0
- Tags: powershell, python, quoting

Windows PowerShell 5.1 stripped embedded double quotes from a python -c deployment preflight, causing a SyntaxError before the database check ran. Passing a literal here-string to python - via stdin avoids native argument quoting. Make the failure message point to the underlying Python error instead of treating every nonzero exit as a missing migration.
