2020-03-24 11:08:37 -07:00
|
|
|
# Copyright (c) Microsoft Corporation.
|
2018-02-13 09:23:53 -08:00
|
|
|
# Licensed under the MIT License.
|
|
|
|
|
|
2016-08-03 14:49:35 -07:00
|
|
|
#
|
2016-08-04 13:13:21 -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
|
2016-08-04 13:13:21 -07:00
|
|
|
# picking up the Python script from the same directory
|
2016-08-03 14:49:35 -07:00
|
|
|
#
|
|
|
|
|
|
2020-05-07 13:00:30 +01:00
|
|
|
& $PSScriptRoot/class1.py | ConvertFrom-Json
|
2016-08-03 14:49:35 -07:00
|
|
|
|