Guest User

Untitled

a guest
Dec 13th, 2017
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. # Just drop this in the 'Scripts' directory in your virtualenv and run it.
  2. $Dir = Split-Path ((Get-Variable MyInvocation).Value).MyCommand.Path
  3. $Scripts = Get-ChildItem $Dir | Where-Object {($_.name -match '\.py$') -and ($_.name -notmatch '^activa
  4. te')}
  5. foreach ($Script in $Scripts) {
  6. Write-Output "python $($Script.Fullname) @args" | Out-File ($Script.Fullname -replace '\.py$','.ps1')
  7. }
Add Comment
Please, Sign In to add comment