From: Edward Z. Yang Date: Tue, 18 Aug 2009 01:09:45 +0000 (-0400) Subject: Use abspath instead of realpath for speed; fix summary output. X-Git-Url: https://scripts.mit.edu/gitweb/wizard.git/commitdiff_plain/90371b08d84bd1a9d079cee4cf4bd1fe84b91cfe?ds=sidebyside Use abspath instead of realpath for speed; fix summary output. Summary output now is wider to deal with -scripts versions. Signed-off-by: Edward Z. Yang --- diff --git a/wizard/command/summary/version.py b/wizard/command/summary/version.py index 353aaf4..b14b184 100644 --- a/wizard/command/summary/version.py +++ b/wizard/command/summary/version.py @@ -16,12 +16,12 @@ def main(argv, baton): if not show: print "No applications found" for application in show: - print "%-16s %3d installs" % (application.name, c_application[application]) + print "%-20s %3d installs" % (application.name, c_application[application]) vmax = max(c_version[x] for x in application.versions.values()) for version in sorted(application.versions.values()): v = c_version[version] graph = '+' * int(math.ceil(float(v)/vmax * HISTOGRAM_WIDTH)) - print " %-12s %3d %s" % (version.version, v, graph) + print " %-16s %3d %s" % (version.version, v, graph) print def parse_args(argv, baton): diff --git a/wizard/deploy.py b/wizard/deploy.py index 60351f6..3ae65e3 100644 --- a/wizard/deploy.py +++ b/wizard/deploy.py @@ -69,7 +69,7 @@ class Deployment(object): #: Absolute path to the deployment location = None def __init__(self, location, version=None): - self.location = os.path.realpath(location) + self.location = os.path.abspath(location) self._app_version = version # some cache variables self._read_cache = {}