Running a Python 3 script with Jamf Pro

user-lFdRjzkONM
New Contributor II

I have a script I need to run in using the Python 3 command. Terminal example: Python 3 scriptpath.py

How can I run it via Jamf and verify that runs via Python 3? My estimation is that Jamf is using the computer’s default while I need it to select Python 3 instead of Python which happens for some computers.

2 REPLIES 2

ewu-it
New Contributor III

The first line of your script SHOULD be pointed to the desired location of python 3 on your systems such as:

#!/usr/local/bin/managed_python3

 

--
Howard Griffith--Endpoint Systems Engineer--Eastern Washington University

tlarkin
Honored Contributor

I wrote a blog post about shipping and using your own Pyton3, which we have done for a few years here.  This might help you figure it out, hope it helps

 

Shipping Your Own Python3