Skip to content

Commit 32347cd

Browse files
committed
macdeploy: assume plistlib is available
We already require Python 3.5 or later
1 parent 0ab4018 commit 32347cd

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

contrib/macdeploy/macdeployqtplus

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
# along with this program. If not, see <http://www.gnu.org/licenses/>.
1717
#
1818

19+
import plistlib
1920
import subprocess, sys, re, os, shutil, stat, os.path, time
2021
from argparse import ArgumentParser
2122
from pathlib import Path
@@ -537,13 +538,6 @@ app_bundle_name = os.path.splitext(os.path.basename(app_bundle))[0]
537538
# ------------------------------------------------
538539

539540
if len(config.fancy) == 1:
540-
if verbose:
541-
print("Fancy: Importing plistlib...")
542-
try:
543-
import plistlib
544-
except ImportError:
545-
sys.stderr.write("Error: Could not import plistlib which is required for fancy disk images.\n")
546-
sys.exit(1)
547541

548542
p = config.fancy[0]
549543
if verbose:

0 commit comments

Comments
 (0)