How to run Python scripts in Windows

Follow

It is possible to run python scripts in JAMS using a custom execution method.

  1. Click on the Execution Methods shortcut.
  2. Click on the Add button (plus sign).
  3. Fill out the Name of the new Execution method.
  4. Use Command as the base method and edit the new Method after saving.
  5. The method properties will be displayed. Change the following properties to match the example below and ensure that the correct path to python.exe is configured along with the same character in quotes as shown.

2018-02-28_1232.png

  • Create a new job using this new execution method.
  • The job source can contain the location of your py file or contain the actual script itself.

2018-02-28_1240.png

When referencing the location of the PY file, the Command Execution method should be used referencing the location of python.exe and the PY file. For example:

C:\python\python.exe c:\temp\myScript.py

Have more questions? Submit a request

Comments