Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions AddPrinter-Template.plist
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<key>display_name</key>
<string>DISPLAY_NAME</string>
<key>installcheck_script</key>
<string>#!/usr/local/munki/munki-python
<string>#!/usr/local/bin/managed_python3
import subprocess
import sys
import shlex
Expand Down Expand Up @@ -80,7 +80,7 @@ sys.exit(1)
<key>name</key>
<string>AddPrinter_DISPLAYNAME</string>
<key>preinstall_script</key>
<string>#!/usr/local/munki/munki-python
<string>#!/usr/local/bin/managed_python3
import subprocess
import sys

Expand All @@ -106,7 +106,7 @@ else:
sys.exit(543)
</string>
<key>postinstall_script</key>
<string>#!/usr/local/munki/munki-python
<string>#!/usr/local/bin/managed_python3
import subprocess
import sys

Expand Down
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,15 @@ This is a fork of [nmcspadden/PrinterGenerator](https://github.com/nmcspadden/Pr

This updated version implements some cool new things:

* Support for macOS 10.14, 10.15, 11, 12, 13 and 14
* Usage of the Munki-included Python3
* Support for macOS 10.14, 10.15, 11, 12, 13, 14, 15 and 26
* Usage of [MacAdmins Python](https://github.com/macadmins/python) (munki-python was removed in Munki 7)
* Enhances usage of Microsoft Excel to edit the CSV file: for regions which use the comma as the decimal separator, Microsoft Excel expects a semicolon as separator in CSV files. The script will distinguish between both variants.
* The order of the csv columns do not have to be preserved, but **keep the names of the 1st row**.
* Sanity checks for the csv fields
* Option to setup printers using AirPrint provided PPDs, using [airprint-ppd](https://github.com/wycomco/airprint-ppd)
* Option to define a path to Munki repo and an optional subdirectory
* Option to define a separate name for the Munki pkginfo item
* Option to define a Munki category
* **This script should preserve backward compatibility!**

## Caveats

Expand Down
2 changes: 1 addition & 1 deletion print_generator.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/local/munki/munki-python
#!/usr/local/bin/managed_python3
from __future__ import absolute_import, print_function

import argparse
Expand Down