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