Context English Oromo
basic_2_python.xhp
N0469
help.text
Embedded Scripts Examples
basic_2_python.xhp
N0470
help.text
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.
basic_2_python.xhp
N0472
help.text
Option Compatible ' Properties are supported
basic_2_python.xhp
N0477
help.text
'''Workstation name'''
basic_2_python.xhp
N0483
help.text
'''File size in bytes'''
basic_2_python.xhp
N0489
help.text
ISEMBEDDED As String ' document script
basic_2_python.xhp
N0490
help.text
ISPERSONAL As String ' user script
basic_2_python.xhp
N0491
help.text
ISSHARED As String ' %PRODUCTNAME macro
basic_2_python.xhp
N0497
help.text
.ISEMBEDDED = "document" ' document script
basic_2_python.xhp
N0498
help.text
.ISPERSONAL = "user" ' user scripts
basic_2_python.xhp
N0499
help.text
.ISSHARED = "share" ' %PRODUCTNAME macro
basic_2_python.xhp
N0503
help.text
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:
basic_2_python.xhp
N0526
help.text
Personal or Shared Scripts Examples
basic_2_python.xhp
N0527
help.text
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.
basic_2_python.xhp
N0529
help.text
Option Compatible ' Properties are supported
basic_2_python.xhp
N0534
help.text
'''Platform name as "Linux", "Darwin" or "Windows"'''
basic_2_python.xhp
N0540
help.text
'''%PRODUCTNAME Python shared sample'''
basic_2_python.xhp
N0546
help.text
'''Strip superfluous '\..' in path'''
basic_2_python.xhp
N0550
help.text
Python standard modules
basic_2_python.xhp
N0551
help.text
%PRODUCTNAME embedded Python contains many standard libraries to benefit from. They bear a rich feature set, such as but not limited to: