列出构建配置变量
我想知道使用 zc.buildout 时到底有哪些变量可用。我总是可以查看源代码,但理想情况下我会在某处找到一个列表,或者能够查询构建以找出它认为在任何时间可用的变量。这可能吗?
I'd like to find out, exactly what variables are available when using zc.buildout. I can always look at the source, but ideally I'd find a list somewhere, or be able to query buildout to find out what it thinks are the variables available at any one time. Is this possible?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我从 buildout 文档 中发现
bin/buildout 注释< /code>
就是我正在寻找的。
I found from the buildout docs that
bin/buildout annotate
was what I was looking for.
它不是最漂亮的列表,但您可以查看构建目录中的
.installed.cfg
。对于每个部分,它都会显示它知道哪些选项。 (由于某种原因,几个部分经常显示多次)。
It is not the prettiest list, but you can look at
.installed.cfg
in your buildout's directory.For every part, it shows which options it knows about. (For some reason several parts are often shown multiple times).