Files
PowerShell/demos/python/class1.ps1
T

14 lines
365 B
PowerShell
Raw Normal View History

# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
2016-08-03 14:49:35 -07:00
#
# Wrap Python script in such a way to make it easy to
# consume from PowerShell
2016-08-03 14:49:35 -07:00
#
# The variable $PSScriptRoot points to the directory
# from which the script was executed. This allows
# picking up the Python script from the same directory
2016-08-03 14:49:35 -07:00
#
& $PSScriptRoot/class1.py | ConvertFrom-Json
2016-08-03 14:49:35 -07:00