From a620aadc937d6af403c87be3e989b39b0e24e349 Mon Sep 17 00:00:00 2001 From: utahvich Date: Sat, 16 Oct 2010 19:51:21 +0900 Subject: [PATCH] bug fixed: install command --- pythonbrew | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/pythonbrew b/pythonbrew index be6962a..f3a49c9 100755 --- a/pythonbrew +++ b/pythonbrew @@ -293,14 +293,14 @@ And follow the instruction on screen.""" sys.exit(1) return basename else: - basename = os.path.basename(name) - distpath = "%s/%s" % (PATH_DISTS, basename) if os.path.isfile(name): - shutil.copy(name, "%s" % distpath) - print "File copy %s to %s" % (name, distpath) + basename = os.path.basename(name) + print "Copy the file %s to %s/%s" % (name, PATH_DISTS, basename) + shutil.copy(name, "%s/%s" % (PATH_DISTS, basename)) elif os.path.isdir(name): - shutil.copytree(name, "%s" % distpath) - print "Directory copy %s to %s" % (name, distpath) + basename = name + print "Copy the directory %s to %s/%s" % (name, PATH_DISTS, basename) + shutil.copytree(name, "%s/%s" % (PATH_DISTS, basename)) else: print "Unknown object. `%s`" % name sys.exit(1)