aboutsummaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorfanquake <fanquake@gmail.com>2020-11-09 11:18:14 +0800
committerfanquake <fanquake@gmail.com>2020-11-30 14:54:19 +0800
commit32347cd56aaae95f3f4c78be9270565285280d72 (patch)
treedc8c897c7e314d533ef8ef686549e78d60f33afc /contrib
parent0ab4018c1217f82dffd65e973d9cccf13af2ef50 (diff)
macdeploy: assume plistlib is available
We already require Python 3.5 or later
Diffstat (limited to 'contrib')
-rwxr-xr-xcontrib/macdeploy/macdeployqtplus8
1 files changed, 1 insertions, 7 deletions
diff --git a/contrib/macdeploy/macdeployqtplus b/contrib/macdeploy/macdeployqtplus
index effcf6dc94..717d8ddb61 100755
--- a/contrib/macdeploy/macdeployqtplus
+++ b/contrib/macdeploy/macdeployqtplus
@@ -16,6 +16,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
+import plistlib
import subprocess, sys, re, os, shutil, stat, os.path, time
from argparse import ArgumentParser
from pathlib import Path
@@ -537,13 +538,6 @@ app_bundle_name = os.path.splitext(os.path.basename(app_bundle))[0]
# ------------------------------------------------
if len(config.fancy) == 1:
- if verbose:
- print("Fancy: Importing plistlib...")
- try:
- import plistlib
- except ImportError:
- sys.stderr.write("Error: Could not import plistlib which is required for fancy disk images.\n")
- sys.exit(1)
p = config.fancy[0]
if verbose: