github.com/leowmjw/otto@v0.2.1-0.20160126165905-6400716cf085/builtin/app/python/customization.go (about) 1 package pythonapp 2 3 import ( 4 "github.com/hashicorp/otto/helper/compile" 5 "github.com/hashicorp/otto/helper/schema" 6 ) 7 8 type customizations struct { 9 Opts *compile.AppOptions 10 } 11 12 func (c *customizations) process(d *schema.FieldData) error { 13 c.Opts.Bindata.Context["python_version"] = d.Get("python_version") 14 c.Opts.Bindata.Context["python_entrypoint"] = d.Get("python_entrypoint") 15 return nil 16 }