Remove unused imports in macdeploy script

This commit is contained in:
Federico Bond 2014-05-15 03:22:42 -03:00
parent a99f9be0eb
commit d16f6f87e1
2 changed files with 0 additions and 15 deletions

View File

@ -1,9 +1,5 @@
### MacDeploy ### ### MacDeploy ###
You will need the appscript package for the fancy disk image creation to work:
sudo easy_install appscript
For Snow Leopard (which uses [Python 2.6](http://www.python.org/download/releases/2.6/)), you will need the param_parser package: For Snow Leopard (which uses [Python 2.6](http://www.python.org/download/releases/2.6/)), you will need the param_parser package:
sudo easy_install argparse sudo easy_install argparse

View File

@ -19,7 +19,6 @@
import subprocess, sys, re, os, shutil, stat, os.path import subprocess, sys, re, os, shutil, stat, os.path
from string import Template from string import Template
from time import sleep
from argparse import ArgumentParser from argparse import ArgumentParser
# This is ported from the original macdeployqt with modifications # This is ported from the original macdeployqt with modifications
@ -488,16 +487,6 @@ if len(config.fancy) == 1:
sys.stderr.write("Error: Could not import plistlib which is required for fancy disk images.\n") sys.stderr.write("Error: Could not import plistlib which is required for fancy disk images.\n")
sys.exit(1) sys.exit(1)
if verbose >= 3:
print "Fancy: Importing appscript..."
try:
import appscript
except ImportError:
if verbose >= 1:
sys.stderr.write("Error: Could not import appscript which is required for fancy disk images.\n")
sys.stderr.write("Please install it e.g. with \"sudo easy_install appscript\".\n")
sys.exit(1)
p = config.fancy[0] p = config.fancy[0]
if verbose >= 3: if verbose >= 3:
print "Fancy: Loading \"%s\"..." % p print "Fancy: Loading \"%s\"..." % p