File: settings.jinja2

package info (click to toggle)
python-envs 1.2.6-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 148 kB
  • sloc: python: 264; makefile: 6
file content (5 lines) | stat: -rw-r--r-- 398 bytes parent folder | download | duplicates (4)
1
2
3
4
5
from envs import env

{% for obj in attr_list %}
{{ obj.name }} = {% if not obj.convert %}{% if obj.var_type == 'string' %}"{% endif %}{{ obj.default_val }}{% if obj.var_type == 'string' %}"{% endif %}{% else %}env('{{ obj.name }}',{% if obj.var_type == 'string' %}"{% endif %}{{ obj.default_val }}{% if obj.var_type == 'string' %}"{% endif %},var_type='{{ obj.var_type }}'){% endif %}
{% endfor %}