2018-02-13 18:23:53 +01:00
|
|
|
# Copyright (c) Microsoft Corporation. All rights reserved.
|
|
|
|
# Licensed under the MIT License.
|
|
|
|
|
2016-08-03 23:49:35 +02:00
|
|
|
#
|
2016-08-04 22:13:21 +02:00
|
|
|
# Wrap Python script in such a way to make it easy to
|
|
|
|
# consume from PowerShell
|
2016-08-03 23:49:35 +02:00
|
|
|
#
|
|
|
|
# The variable $PSScriptRoot points to the directory
|
|
|
|
# from which the script was executed. This allows
|
2016-08-04 22:13:21 +02:00
|
|
|
# picking up the Python script from the same directory
|
2016-08-03 23:49:35 +02:00
|
|
|
#
|
|
|
|
|
|
|
|
& $PSScriptRoot/class1.py | ConvertFrom-JSON
|
|
|
|
|