summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Barrell <rchrd@brrll.co.uk>2011-11-07 14:48:45 -0800
committerRichard Barrell <rchrd@brrll.co.uk>2011-11-07 14:48:45 -0800
commita9e75c453b8ad3abb2ab64f14c3d53637c8ce566 (patch)
tree08cb9401ad9fa8b158bd7c359433c508db932455
parentc0882cfe497a4282e3d32c940b265c58e6d603cb (diff)
downloadpyramid-a9e75c453b8ad3abb2ab64f14c3d53637c8ce566.tar.gz
pyramid-a9e75c453b8ad3abb2ab64f14c3d53637c8ce566.tar.bz2
pyramid-a9e75c453b8ad3abb2ab64f14c3d53637c8ce566.zip
pcreate scaffolds are allowed to assume that the output_dir that they have been handed is an absolute path. Fix my 'fix' to pcreate.py so that it enforces this again.
-rw-r--r--pyramid/scripts/pcreate.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pyramid/scripts/pcreate.py b/pyramid/scripts/pcreate.py
index 20e531956..f559e4f17 100644
--- a/pyramid/scripts/pcreate.py
+++ b/pyramid/scripts/pcreate.py
@@ -66,7 +66,7 @@ class PCreateCommand(object):
options = self.options
args = self.args
project_name = os.path.basename(args[0])
- output_dir = os.path.normpath(args[0])
+ output_dir = os.path.abspath(os.path.normpath(args[0]))
pkg_name = _bad_chars_re.sub('', project_name.lower())
safe_name = pkg_resources.safe_name(project_name)
egg_name = pkg_resources.to_filename(safe_name)