parent
dbf841c689
commit
9e885e3045
@ -1,9 +1,14 @@
|
||||
from calculate.variables.datavars import Variable, Namespace, Dependence, \
|
||||
StringType, BooleanType, HashType, Calculate
|
||||
from calculate.vars.main.os.func import *
|
||||
from calculate.variables.datavars import (
|
||||
Variable,
|
||||
Namespace,
|
||||
StringType,
|
||||
Calculate
|
||||
)
|
||||
from .func import get_arch_machine, get_arch_gentoo
|
||||
|
||||
with Namespace("arch"):
|
||||
Variable("machine", type=StringType,
|
||||
source=Calculate(get_arch_machine))
|
||||
source=Calculate(get_arch_machine))
|
||||
|
||||
Variable("gentoo", type=StringType,
|
||||
source=Calculate(get_arch_gentoo, ".machine"))
|
||||
source=Calculate(get_arch_gentoo, ".machine"))
|
||||
|
Loading…
Reference in new issue