Skip to content

Commit 6d79858

Browse files
committed
Add NonProduction class with WrapperDemo method for module import and execution
1 parent 0ed505c commit 6d79858

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

demo/iris/PEX/NonProduction.cls

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
Class Demo.PEX.NonProduction Extends %RegisteredObject
2+
{
3+
4+
ClassMethod WrapperDemo() As %Status
5+
{
6+
7+
// Import the module
8+
set tModule = ##class(IOP.Wrapper).Import("my_script", "/Users/grongier/git/interoperability-embedded-python/demo/python/non_production/", 54132)
9+
10+
// Call the function
11+
do tModule.main()
12+
}
13+
14+
}

0 commit comments

Comments
 (0)