UiPath Documentation
activities
latest
false
Wichtig :
Bitte beachten Sie, dass dieser Inhalt teilweise mithilfe von maschineller Übersetzung lokalisiert wurde. Es kann 1–2 Wochen dauern, bis die Lokalisierung neu veröffentlichter Inhalte verfügbar ist.

Entwickleraktivitäten

Python-Skript ausführen (Run Python Script)

UiPath.Python.Activities.RunScript

Ermöglicht die Ausführung des Python-Codes. Sie können den Code direkt in der Aktivität eingeben oder einen Dateipfad angeben.

Kann nur innerhalb der Aktivität Python Scope verwendet werden.

Aufgrund einer Software-Begrenzung verwendet diese Aktivität per Standard den Installationsort des Python-Aktivitätspakets als Ausführungsverzeichnis für das Skript.

Um relative Pfade innerhalb des Skripts verwenden zu können, können Sie als Problemumgehung den folgenden Code zum geladenen Skript hinzufügen:

import sys 
            import os
            sys.path.append(os.path.dirname(os.path.realpath(<em>file</em>)))
            import <your module here>
import sys 
            import os
            sys.path.append(os.path.dirname(os.path.realpath(<em>file</em>)))
            import <your module here>

Eigenschaften

Allgemein

  • DisplayName - The display name of the activity. This field supports only String variables.

Eingabe

  • Code - The Python code that you want to run. This field supports only String variables.
  • File - The path to the file containing the Python code that you want to run. This field supports only String variables.

Sonstiges

  • Privat (Private) - Bei Auswahl werden die Werte von Variablen und Argumenten nicht mehr auf der Stufe Verbose protokolliert.
  • Eigenschaften
  • Allgemein
  • Eingabe
  • Sonstiges

War diese Seite hilfreich?

Verbinden

Benötigen Sie Hilfe? Support

Möchten Sie lernen? UiPath Academy

Haben Sie Fragen? UiPath-Forum

Auf dem neuesten Stand bleiben