summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorAlain Romedenne <alain.romedenne@libreoffice.org>2024-06-06 15:21:36 +0200
committerAlain Romedenne <alain.romedenne@libreoffice.org>2024-06-07 09:24:30 +0200
commit842cf7acf0f77bbffdb61b42fc5b935773094dcb (patch)
treea3a727e161f4b46df9abf7f37872b882a2f2d5e1 /source
parentef98081ca946d506c0bc0198f508358ef6e3a9aa (diff)
Precision about Win environment variable
Change-Id: I2105960d58fa0342dde9d7f762ecc1a18b3e9bb5 Reviewed-on: https://gerrit.libreoffice.org/c/help/+/168448 Tested-by: Jenkins Reviewed-by: Alain Romedenne <alain.romedenne@libreoffice.org>
Diffstat (limited to 'source')
-rw-r--r--source/text/sbasic/python/python_platform.xhp5
1 files changed, 3 insertions, 2 deletions
diff --git a/source/text/sbasic/python/python_platform.xhp b/source/text/sbasic/python/python_platform.xhp
index d2b0d80e11..4e1a7da743 100644
--- a/source/text/sbasic/python/python_platform.xhp
+++ b/source/text/sbasic/python/python_platform.xhp
@@ -26,7 +26,6 @@
</bookmark>
<h1 id="N0509"><variable id="pythonplatform"><link href="text/sbasic/python/python_platform.xhp">Identifying the operating system</link></variable></h1>
<paragraph role="paragraph" id="N0510">Identifying the operating system can be performed with Python or Basic language.</paragraph>
- <note id="N0511">ComputerName property is solely available for Windows. Basic calls to Python macros help overcome %PRODUCTNAME Basic limitations.</note>
<h2 id="N0512">Using a Python class:</h2>
<pycode>
<paragraph role="pycode" localize="false" id="N05130">""" the_module """</paragraph>
@@ -50,7 +49,8 @@
<h2 id="N0529">Using a Basic classmodule:</h2>
<tip id="NO529b">%PRODUCTNAME Basic lacks MacOS X native recognition. Platform identification is possible using %PRODUCTNAME Application Programming Interface (API).</tip>
<bascode>
- <paragraph role="bascode" localize="false" id="N0530">Option Compatible</paragraph>
+ <paragraph role="bascode" id="N0530a">''' Module name: Platform '''</paragraph>
+ <paragraph role="bascode" localize="false" id="N0530b">Option Compatible</paragraph>
<paragraph role="bascode" localize="false" id="N0531">Option ClassModule</paragraph>
<paragraph role="bascode" localize="false" id="N0532">Option Explicit</paragraph>
<paragraph role="bascode" localize="false" id="N0533"></paragraph>
@@ -92,6 +92,7 @@
<paragraph role="bascode" localize="false" id="N0562"> End Select</paragraph>
<paragraph role="bascode" localize="false" id="N0563">End Property &apos; Platform.PathDelimiter</paragraph>
</bascode>
+ <note id="N0511">ComputerName environment variable is solely available for Windows. Basic calls to Python macros help overcome %PRODUCTNAME Basic limitations.</note>
<h2 id="N0564">Examples:</h2>
<paragraph role="paragraph" id="N0565">With Python</paragraph>
<paragraph role="paragraph" localize="false" id="N0566"><literal>&gt;&gt;&gt; from &lt; the_module &gt; import Platform</literal></paragraph>