script
La commande script exécute un script 3.11.5 qui utilise l'API Python RaptorXML.
raptorxml script [options] PythonScriptFile |
L'argument File est le chemin vers le script Python que vous souhaitez exécuter. Des options supplémentaires sont disponibles pour cette commande. Pour obtenir une liste de ces options, exécutez la commande suivante :
raptorxml script [-h | --help] |
Exemples
•raptorxml script c:\MyPythonScript.py
•raptorxml script -h
•raptorxml script # Sans fichier de script, un shell Python interactif est démarré
•raptorxml script -m pip # Charge et exécute le module pip ; voir la section des Options ci-dessous
RaptorXML (and RaptorXMLServer for administration commands) on Windows raptorxml (and raptorxmlserver for administration commands) on Windows and Unix (Linux, Mac)
* Note that lowercase (raptorxml and raptorxmlserver) works on all platforms (Windows, Linux, and Mac), while upper-lower (RaptorXML) works only on Windows and Mac. * Use forward slashes on Linux and Mac, backslashes on Windows.
|
On Windows systems: When spaces or special characters occur in strings (for example in file or folder names, or company, person or product names), use quotes: for example, "My File". Note, however, that a backslash followed by a double-quotation mark (for example, "C:\My directory\") might not be read correctly. This is because the backslash character is also used to indicate the start of an escape sequence, and the escape sequence \" stands for the double-quotation mark character. If you want to escape this sequence of characters, use a preceding backslash, like this: \\". To summarize: If you need to write a file path that contains spaces or an end backslash, write it like this: "C:\My Directory\\".
|
Options
Toutes les options et arguments se trouvant après la commande script seront envoyés directement à l'interprète Python. Veuillez consulter la page de documentation Python https://docs.python.org/3.7/using/cmdline.html pour une liste complète des options disponibles.