@@ -1462,27 +1462,23 @@ \subsubsection{The Postinstallation script}
14621462output (\code {sys.stdout}, \code {sys.stderr}) is redirected into a
14631463buffer and will be displayed in the GUI after the script has finished.
14641464
1465- Some functions especially useful in this context are available in the
1466- installation script.
1465+ Some functions especially useful in this context are available as
1466+ additional built-in functions in the installation script.
14671467
1468- \begin {verbatim }
1469- directory_created(pathname)
1470- file_created(pathname)
1471- \end {verbatim }
1472-
1473- These functions should be called when a directory or file is created
1474- by the postinstall script at installation time. It will register the
1475- pathname with the uninstaller, so that it will be removed when the
1476- distribution is uninstalled. To be safe, directories are only removed
1477- if they are empty.
1478-
1479- \begin {verbatim }
1480- get_special_folder_path(csidl_string)
1481- \end {verbatim }
1468+ \begin {funcdesc }{directory_created}{path}
1469+ \funcline {file_created}{path}
1470+ These functions should be called when a directory or file is created
1471+ by the postinstall script at installation time. It will register
1472+ \var {path} with the uninstaller, so that it will be removed when the
1473+ distribution is uninstalled. To be safe, directories are only removed
1474+ if they are empty.
1475+ \end {funcdesc }
14821476
1483- This function can be used to retrieve special folder locations on
1484- Windows like the Start Menu or the Desktop. It returns the full path
1485- to the folder. 'csidl_string' must be one of the following strings:
1477+ \begin {funcdesc }{get_special_folder_path}{csidl_string}
1478+ This function can be used to retrieve special folder locations on
1479+ Windows like the Start Menu or the Desktop. It returns the full
1480+ path to the folder. \var {csidl_string} must be one of the following
1481+ strings:
14861482
14871483\begin {verbatim }
14881484"CSIDL_APPDATA"
@@ -1502,27 +1498,30 @@ \subsubsection{The Postinstallation script}
15021498"CSIDL_FONTS"
15031499\end {verbatim }
15041500
1505- If the folder cannot be retrieved, \exception {OSError} is raised.
1506-
1507- Which folders are available depends on the exact Windows version, and probably
1508- also the configuration. For details refer to Microsoft's documentation of the
1509- \cfunction {SHGetSpecialFolderPath()} function.
1510-
1511- \begin {verbatim }
1512- create_shortcut(target, description, filename[, arguments[,
1513- workdir[, iconpath[, iconindex]]]])
1514- \end {verbatim }
1515-
1516- This function creates a shortcut.
1517- \var {target} is the path to the program to be started by the shortcut.
1518- \var {description} is the description of the sortcut.
1519- \var {filename} is the title of the shortcut that the user will see.
1520- \var {arguments} specifies the command line arguments, if any.
1521- \var {workdir} is the working directory for the program.
1522- \var {iconpath} is the file containing the icon for the shortcut,
1523- and \var {iconindex} is the index of the icon in the file
1524- \var {iconpath}. Again, for details consult the Microsoft
1525- documentation for the \class {IShellLink} interface.
1501+ If the folder cannot be retrieved, \exception {OSError} is raised.
1502+
1503+ Which folders are available depends on the exact Windows version,
1504+ and probably also the configuration. For details refer to
1505+ Microsoft's documentation of the
1506+ \cfunction {SHGetSpecialFolderPath()} function.
1507+ \end {funcdesc }
1508+
1509+ \begin {funcdesc }{create_shortcut}{target, description,
1510+ filename\optional {,
1511+ arguments\optional {,
1512+ workdir\optional {,
1513+ iconpath\optional {, iconindex}}}}}
1514+ This function creates a shortcut.
1515+ \var {target} is the path to the program to be started by the shortcut.
1516+ \var {description} is the description of the sortcut.
1517+ \var {filename} is the title of the shortcut that the user will see.
1518+ \var {arguments} specifies the command line arguments, if any.
1519+ \var {workdir} is the working directory for the program.
1520+ \var {iconpath} is the file containing the icon for the shortcut,
1521+ and \var {iconindex} is the index of the icon in the file
1522+ \var {iconpath}. Again, for details consult the Microsoft
1523+ documentation for the \class {IShellLink} interface.
1524+ \end {funcdesc }
15261525
15271526\section {Registering with the Package Index }
15281527\label {package-index }
0 commit comments