forked from amazingfate/help
More pages on Python scripts
Change-Id: I5d8db28da384f52ee835195d3eb889fde0fe33b3 Signed-off-by: Olivier Hallot <olivier.hallot@libreoffice.org> Reviewed-on: https://gerrit.libreoffice.org/65117 Tested-by: Jenkins
This commit is contained in:
committed by
Olivier Hallot
parent
1405725db5
commit
eea4d307ec
@ -17,7 +17,7 @@
|
||||
</meta>
|
||||
<body>
|
||||
<section id="pythonlocation">
|
||||
<paragraph id="hd_id391543358231021" role="heading" level="1" xml-lang="en-US"><variable id="pythonlocations1"><link href="text/sbasic/python/python_locations.xhp" name="command_name">Python scripts Organization and Location</link></variable></paragraph>
|
||||
<paragraph id="hd_id391543358231021" role="heading" level="1" xml-lang="en-US"><variable id="pythonlocations1"><link href="text/sbasic/python/python_locations.xhp" name="command_name">Python Scripts Organization and Location</link></variable></paragraph>
|
||||
<paragraph id="par_id771543358231022" role="paragraph" xml-lang="en-US">The Python script files are stored in the file system, in folders controlled by %PRODUCTNAME. The macros can be stared at installation, user or file level.</paragraph>
|
||||
</section>
|
||||
<embed href="text/shared/need_help.xhp#needhelp"/>
|
||||
@ -25,13 +25,13 @@
|
||||
<h3 id="hd_id591544049572647">%PRODUCTNAME Macros container</h3>
|
||||
<paragraph role="paragraph" id="par_id261544049064421">Existing macros in this location (container) were copied by the installation program and are available to every computer user, and any open document can access macros stored the container. You need administrative rights to store or edit macros here.</paragraph>
|
||||
|
||||
<paragraph role="paragraph" id="par_id861544210028670">The LibreOfficeDev Macros container location in the file system depends on the operating system:</paragraph>
|
||||
<paragraph role="paragraph" id="par_id861544210028670">The %PRODUCTNAME Macros container location in the file system depends on the operating system:</paragraph>
|
||||
<list type="unordered">
|
||||
<listitem>
|
||||
<paragraph id="par_id191544210072242" role="listitem">For Windows, <literal>C:\Program Files (x86)\LibreOffice\Basis\share\Scripts\python</literal>.</paragraph>
|
||||
<paragraph id="par_id191544210072242" role="listitem">For Windows,<br/><literal>C:\Program Files (x86)\LibreOffice\Basis\share\Scripts\python</literal>.</paragraph>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<paragraph id="par_id61544210078654" role="listitem">For Linux and macOS, in <literal>$(Installation)/share/Scripts/python</literal>.</paragraph>
|
||||
<paragraph id="par_id61544210078654" role="listitem">For Linux and macOS,<br/><literal>$(Installation)/share/Scripts/python</literal>.</paragraph>
|
||||
</listitem>
|
||||
</list>
|
||||
<h3 id="hd_id861544049692222">My Macros</h3>
|
||||
@ -39,10 +39,10 @@
|
||||
<paragraph role="paragraph" id="par_id341544210187846">The My Macros container location is in the user space and depends on the operating system:</paragraph>
|
||||
<list type="unordered">
|
||||
<listitem>
|
||||
<paragraph id="par_id381544210213190" role="listitem">For <emph>Windows</emph>, in <literal>C:\Users\current-user\AppData\Roaming\libreoffice\4\user\Scripts\python</literal>.</paragraph>
|
||||
<paragraph id="par_id381544210213190" role="listitem">For <emph>Windows</emph>,<br/><literal>C:\Users\current-user\AppData\Roaming\libreoffice\4\user\Scripts\python</literal>.</paragraph>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<paragraph id="par_id691544210219850" role="listitem">For <emph>Linux</emph> and <emph>macOS</emph>, in <literal>$(HOME)/.config/libreoffice/4/user/Scripts/python</literal>.</paragraph>
|
||||
<paragraph id="par_id691544210219850" role="listitem">For <emph>Linux</emph> and <emph>macOS</emph>,<br/><literal>$(HOME)/.config/libreoffice/4/user/Scripts/python</literal>.</paragraph>
|
||||
</listitem>
|
||||
</list>
|
||||
<h3 id="hd_id101544049707712">Document macros</h3>
|
||||
@ -55,5 +55,8 @@
|
||||
<paragraph role="paragraph" id="par_id161544209936743">A module is a python file in the library or the container. Create a module adding a file in the container.</paragraph>
|
||||
<h3 id="hd_id151544209895574">Python macros</h3>
|
||||
<paragraph role="paragraph" id="par_id61544209944591">A macro is a python object in the module.</paragraph>
|
||||
<section id="relatedtopics">
|
||||
<embed href="text/sbasic/python/main0000.xhp#pythonscriptshelp"/>
|
||||
</section>
|
||||
</body>
|
||||
</helpdocument>
|
||||
|
||||
Reference in New Issue
Block a user