The calling mechanism for personal or shared Python scripts is identical to that of embedded scripts. Library names are mapped to folders. Computing %PRODUCTNAME user profile and shared modules system file paths can be performed as detailed in <link href="text/sbasic/python/python_session.xhp">Getting session information</link>. Below <literal>OSName</literal>, <literal>HelloWorld</literal> and <literal>NormalizePath</literal> routines are calling their Python counterparts, using aforementioned <literal>GetPythonScript</literal> function. Exception handling is not detailed.
El mecanismo de llamada para scripts Python personales o compartidos personal es idéntico al de los scripts embebidos. Los nombres de librerías se mapean a carpetas. Calcular las rutas del perfil de usuario y de módulos compartidos de %PRODUCTNAME se puede hacer según se detalla en <link href="text/sbasic/python/python_session.xhp">Obteniendo información de sesión</link>. Debajo de las rutinas <literal>OSName</literal>, <literal>HelloWorld</literal> y <literal>NormalizePath</literal> están las llamadas a sus contrapartidas Python, usando la función ya mencionada <literal>GetPythonScript</literal>. La gestión de excepciones no está detallada.
Two different Python modules are called. They can either be embedded in the current document, either be stored on the file system. Argument type checking is skipped for clarity:
Se llama a dos módulos distintos Python. Pueden ser o embebidos en el documento actual, o almacenados en el sistema de archivos. La comprobación de tipos de los argumentos es obviada por claridad:
Below <literal>ComputerName</literal>, and <literal>GetFilelen</literal> routines are calling their Python counterparts, using aforementioned <literal>GetPythonScript</literal> function. Exception handling is not detailed.
Por debajo de las rutinas <literal>ComputerName</literal>, y <literal>GetFilelen</literal> se llama a sus contrapartidas Python, usando la antes mencionada función <literal>GetPythonScript</literal>. La gestión de excepciones no está detallada.
The calling mechanism for personal or shared Python scripts is identical to that of embedded scripts. Library names are mapped to folders. Computing %PRODUCTNAME user profile and shared modules system file paths can be performed as detailed in <link href="text/sbasic/python/python_session.xhp">Getting session information</link>. Below <literal>OSName</literal>, <literal>HelloWorld</literal> and <literal>NormalizePath</literal> routines are calling their Python counterparts, using aforementioned <literal>GetPythonScript</literal> function. Exception handling is not detailed.
El mecanismo de llamada a Scripts personales o compartidos es idéntica a la de los Scripts embebidos. Los nombres de libreiras son mapeados a carpetas. Calcular las rutas del perfil de usuario y de módulos compartidos de %PRODUCTNAME se puede hacer como se detalla en <link href="text/sbasic/python/python_session.xhp">Obteniendo información de sesión</link>. Debajo de las rutinas <literal>OSName</literal>, <literal>HelloWorld</literal> y <literal>NormalizePath</literal> se llaman sus contrapartidas Python, usando la función ya mencionada <literal>GetPythonScript</literal>. La gestión de excepciones no está detallada.
Two different Python modules are called. They can either be embedded in the current document, either be stored on the file system. Argument type checking is skipped for clarity:
Dos módulos diferentes Python son llamados. Pueden o estar embebidos en el documento actual, o estar almacenados en el sistema de archivos. La comprobación de tipos en los argumentos se omite por claridad:
Below <literal>ComputerName</literal>, and <literal>GetFilelen</literal> routines are calling their Python counterparts, using aforementioned <literal>GetPythonScript</literal> function. Exception handling is not detailed.
Debajo de las rutinas <literal>ComputerName</literal>, y <literal>GetFilelen</literal> están sus contrapartidas Python, usando la mencionada función <literal>GetPythonScript</literal>. La gestión de excepciones no está detallada.