PS: in particular, the INI file's path shouldn't be hardcoded, but should be read from the command line, as is the case with pserve, pshell, etc.

from pyramid.paster import bootstrap
env = bootstrap('/path/to/my/development.ini')

 From there you could/should add command-line arguments processing with
Python's standard module argparse
(https://docs.python.org/3.4/howto/argparse.html#id1)

--
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to pylons-discuss+unsubscr...@googlegroups.com.
To post to this group, send email to pylons-discuss@googlegroups.com.
Visit this group at http://groups.google.com/group/pylons-discuss.
For more options, visit https://groups.google.com/d/optout.

Reply via email to