Donate to support Ukraine's independence.

28 Jan'12

Make Powershell and Python friends

Problem: when python script is invoked inside powershell shell, cmd window gets open, output is done inside cmd and then it closes.

Solution: inside %USER%\WindowsPowershell\profile.ps1

function django-admin {python (gcm django-admin.py | resolve-path) $args}
function manage {python (gcm .\manage.py | resolve-path) $args}

Continue reading