Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. International
  3. German
  4. mit systemCommand python Script ausführen
Qt 6.11 is out! See what's new in the release blog

mit systemCommand python Script ausführen

Scheduled Pinned Locked Moved Solved German
2 Posts 1 Posters 766 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • G Offline
    G Offline
    Galilio
    wrote on last edited by
    #1

    Hallo zusammen,

    ich möchte einen python Script in einem Unit Test ausführen.
    Meine Frage mit welchen SystemCommand kann dieses tun?

    Ich habe es folgende versucht:

    QString command = "python3 pythonScript.py"
    system(command.toStdString().c_str());
    

    aber das hatte nichts gebracht:
    Fehlermeldung:

    python3: can't open file 'pythonScript.py':  [Errno 2] No such file or directory
    

    Danke

    1 Reply Last reply
    0
    • G Offline
      G Offline
      Galilio
      wrote on last edited by
      #2

      Es war einen tippfehler
      systemcommand ist :

      system(command.toStdString().c_str());
      

      danke

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved