From c0b7076cb5ad4dcf5840c95f527955e3483d7cae Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Wed, 15 Feb 2012 17:36:47 -0500 Subject: handhold more after rendering the sqla scaffold --- pyramid/scaffolds/__init__.py | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/pyramid/scaffolds/__init__.py b/pyramid/scaffolds/__init__.py index ab2b3034a..ad5753713 100644 --- a/pyramid/scaffolds/__init__.py +++ b/pyramid/scaffolds/__init__.py @@ -1,5 +1,6 @@ import binascii import os +import sys from pyramid.compat import native_ @@ -52,10 +53,14 @@ class AlchemyProjectTemplate(PyramidTemplate): summary = 'Pyramid SQLAlchemy project using url dispatch' def post(self, command, output_dir, vars): # pragma: no cover val = PyramidTemplate.post(self, command, output_dir, vars) + vars = vars.copy() + vars['output_dir'] = output_dir + vars['pybin'] = os.path.join(sys.exec_prefix, 'bin') self.out('') self.out('Please run the "populate_%(project)s" script to set up the ' - 'SQL database after installing (but before starting) the ' - 'application (e.g. ' - '"$myvirtualenv/bin/populate_%(project)s development.ini".)' + 'SQL database after\ninstalling (but before starting) the ' + 'application.\n\n For example:\n\ncd %(output_dir)s\n' + '%(pybin)s/python setup.py develop\n' + '%(pybin)s/populate_%(project)s development.ini' % vars) return val -- cgit v1.2.3