Skip to content

Commit 1350e8e

Browse files
committed
Add new properties for Python interpreter and settings in Common.cls; update settings parameter in GenerateProxyClass method
1 parent 2a6fb58 commit 1350e8e

File tree

2 files changed

+18
-2
lines changed

2 files changed

+18
-2
lines changed

src/iop/cls/IOP/Common.cls

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,34 +7,50 @@ Include Ensemble
77
Class IOP.Common [ Abstract, ClassType = "", ProcedureBlock, System = 4 ]
88
{
99

10-
/// One or more Classpaths (separated by '|' character) needed in addition to the ones configured in the Java Gateway Service
10+
/// One or more Classpaths (separated by '|' character)
1111
Property %classpaths As %String(MAXLEN = "");
1212

13+
/// Classname of the Python class to use
1314
Property %classname As %String(MAXLEN = "");
1415

16+
/// Module of the Python class to use
1517
Property %module As %String(MAXLEN = "");
1618

19+
/// Settings for the Python class, in the form of "property=value" pairs, separated by newlines
20+
/// Example: "property1=value1\nproperty2=value2"
21+
/// Note: This property is used to set the properties of the Python class dynamically
1722
Property %settings As %String(MAXLEN = "");
1823

1924
/// Instance of class
2025
Property %class As %SYS.Python;
2126

27+
/// Enable debugging
28+
/// If set to 1, the Python class will be debugged using the debugpy module
29+
/// If set to 0, the Python class will not be debugged
2230
Property %enable As %Boolean;
2331

32+
/// Timeout in seconds for the an client debugging connection
2433
Property %timeout As %Numeric [ InitialExpression = 30 ];
2534

35+
/// Port to use for the an client debugging connection
2636
Property %port As %Numeric [ InitialExpression = 0 ];
2737

38+
/// Path to the Python interpreter for debugpy
2839
Property %PythonInterpreterPath As %String(MAXLEN = 255);
2940

41+
/// Enable traceback display
3042
Property %traceback As %Boolean [ InitialExpression = 1 ];
3143

44+
/// Enable virtual environment
3245
Property %Venv As %Boolean [ InitialExpression = 0 ];
3346

47+
/// Virtual environment site-packages path
3448
Property %PythonPath As %String(MAXLEN = 255);
3549

50+
/// Path to the Python runtime library
3651
Property %PythonRuntimeLibrary As %String(MAXLEN = 255);
3752

53+
/// Version of the Python runtime library
3854
Property %PythonRuntimeLibraryVersion As %String;
3955

4056
/// Get Class

src/iop/cls/IOP/Utils.cls

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ ClassMethod GenerateProxyClass(
238238
}
239239

240240
#; Do not display any of the connection settings
241-
#dim tSETTINGSParamValue As %String = "%classname:Python $type,%module:Python $type,%settings:Python $type,%classpaths:Python $type"
241+
#dim tSETTINGSParamValue As %String = "%classname:Python $type,%module:Python $type,%settings:Python $type,%classpaths:Python $type:directorySelector"
242242
set tSETTINGSParamValue = tSETTINGSParamValue_","_"%enable:Python Debug $type,%timeout:Python Debug $type,%port:Python Debug $type,%PythonInterpreterPath:Python Debug $type,%traceback:Python Debug $type"
243243
set tSETTINGSParamValue = tSETTINGSParamValue_","_"%PythonPath:Python Settings $type,%PythonRuntimeLibrary:Python Settings $type,%PythonRuntimeLibraryVersion:Python Settings $type,%Venv:Python Settings $type"
244244

0 commit comments

Comments
 (0)