What I want to do is something like this:
template.py
def dummy_func():
print(VAR)
# more functions like this to follow
fabfile.py
# this gets called by fabric (fabfile.org)
# safe to think of it as ant build.xml
import template
template.VAR = 'some_val'
from template import *
Namely I have a template module other modules should 'extend' contributing the required variables. Can this be done in a functional manner (as opposed to object inheritance)?
EDIT: Added a bit more code.