Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • Find examples for download (.json upload)pdScriptingPythonWindows.workflow.json
  • In order to directly run Python® script code from a JS7 shell job script the recommended approach is to use a shebang replacement like this:

    Code Block
    languagebash
    titleExample how run Python® script code with a shebang replacement
    linenumberstrue
    @@setlocal enabledelayedexpansion & @@findstr/v "^@@f^@@[fs].*&" "%~f0" | python.exe -&goto:eof & exit !errorlevel!/b&
    
    print("Hello")
    print("world")

    Explanation:

...