forked from amazingfate/help
Corrections + link activation
Change-Id: I99d8a012ff51bf43a96d15450cfaeb02d56ffea9 Reviewed-on: https://gerrit.libreoffice.org/67669 Tested-by: Jenkins Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
This commit is contained in:
committed by
Olivier Hallot
parent
cc0a383f13
commit
dfc93df5d7
@ -23,8 +23,8 @@
|
||||
<bookmark_value>Session;UserScripts</bookmark_value>
|
||||
<bookmark_value>Session;UserPythonScripts</bookmark_value>
|
||||
</bookmark>
|
||||
<h1 id="N0340">Getting session information</h1>
|
||||
<paragraph role="paragraph" id="N0341">To compute %PRODUCTNAME user profile and shared modules system file paths can be performed with Python and with Basic language. BeanShell, Java, JavaScript and Python scripts locations can be derived from this information.</paragraph>
|
||||
<h1 id="N0340"><variable id="pythonsession"><link href="text/sbasic/python/python_session.xhp" name="session01">Getting session information</link></variable></h1>
|
||||
<paragraph role="paragraph" id="N0341">Computing %PRODUCTNAME user profile and shared modules system file paths can be performed with Python or with Basic languages. BeanShell, Java, JavaScript and Python scripts locations can be derived from this information.</paragraph>
|
||||
<h2 id="N0343">Examples:</h2>
|
||||
<paragraph role="paragraph" id="N0344">With Python shell.</paragraph>
|
||||
<paragraph role="paragraph" localize="false" id="N0345"><literal>>>> from <the_module> import Session</literal></paragraph>
|
||||
@ -48,7 +48,7 @@
|
||||
<h3 id="N0361">With %PRODUCTNAME Basic.</h3>
|
||||
<bascode>
|
||||
<paragraph role="bascode" xml-lang="en-US" id="N0362">Sub Session_example()</paragraph>
|
||||
<paragraph role="bascode" localize="false" id="N0363"> Dim s As New Session ' instance of Platform class</paragraph>
|
||||
<paragraph role="bascode" localize="false" id="N0363"> Dim s As New Session ' instance of Session class</paragraph>
|
||||
<paragraph role="bascode" xml-lang="en-US" id="N0364"> Print "Shared scripts location:", s.SharedScripts</paragraph>
|
||||
<paragraph role="bascode" xml-lang="en-US" id="N0365"> MsgBox s.UserName,,"Hello"</paragraph>
|
||||
<paragraph role="bascode" xml-lang="en-US" id="N0366"> Print s.UserScripts, Chr(13), s.UserPythonScripts</paragraph>
|
||||
|
||||
Reference in New Issue
Block a user