From 90fab2f2b4a491a028cd6bdbb2145fb2475bfce6 Mon Sep 17 00:00:00 2001 From: Ilan Schnell Date: Sat, 5 Mar 2011 13:42:16 -0600 Subject: [PATCH] remove unnecessary code --- appinst/darwin.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/appinst/darwin.py b/appinst/darwin.py index 9583075..1db6613 100644 --- a/appinst/darwin.py +++ b/appinst/darwin.py @@ -3,7 +3,7 @@ import os import shutil -from os.path import basename, dirname, isdir, isfile, join +from os.path import basename, dirname, isdir, join from plistlib import Plist, writePlist from egginst.utils import rm_empty_dir, rm_rf @@ -32,7 +32,7 @@ def __init__(self, menu, shortcut): if var_name in shortcut: setattr(self, var_name, shortcut[var_name]) - if isfile(self.cmd[0]) and os.access(self.cmd[0], os.X_OK): + if os.access(self.cmd[0], os.X_OK): self.tp = 'app' self.path = join(menu.path, self.name + '.app') else: