grahampugh / macadmin-scripts

Scripts of possible interest to macOS admins
Other
366 stars 46 forks source link

installinstallmacos.py #30

Closed ZeroOneLabs closed 3 years ago

ZeroOneLabs commented 3 years ago

The shebang at the top calls for /usr/bin/python, which on MacOS defaults to Python 2.7. This means that your script will always default to using Python 2.7.

grahampugh commented 3 years ago

@ZeroOneLabs that is only true if you run it like ./installinstallmacos.py. If you run it like /path/to/python installinstallmacos.py it will use the specified python.

Note that this is inherited from the original version of installinstallmacos.py.