PowerShell/demos/python/class1.ps1
2016-08-04 17:39:12 -07:00

12 lines
291 B
PowerShell

#
# Wrap Python script in such a way to make it easy to
# consume from PowerShell
#
# The variable $PSScriptRoot points to the directory
# from which the script was executed. This allows
# picking up the Python script from the same directory
#
& $PSScriptRoot/class1.py | ConvertFrom-JSON