from paste.deploy import appconfigconfig_name, section = inipath.split('#', 1)here_dir = os.getcwd()return appconfig(config_name, name=section, relative_to=here_dir)
I think you can use the method described here http://docs.pylonsproject.org/projects/pyramid/en/latest/narr/commandline.html#writing-a-script
To view this discussion on the web visit https://groups.google.com/d/msg/pylons-discuss/-/_IZ_JUbo-EcJ.
--
You received this message because you are subscribed to the Google Groups "pylons-discuss" group.
To post to this group, send email to pylons-...@googlegroups.com.
To unsubscribe from this group, send email to pylons-discus...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en.
Great, I had to to tune some things (appconfig() wanted
'config:development.ini#main' instead of 'development.ini#myapp') but
it worked in the end. Many thanks to both of you!
-Greg