parent
9140335ad5
commit
dbf841c689
@ -1,6 +1,6 @@
|
||||
from calculate.variables.datavars import Variable, StringType, Calculate
|
||||
def import_variables():
|
||||
from calculate.variables.datavars import Variable, StringType, Calculate
|
||||
|
||||
|
||||
Variable('vargetter', type=StringType,
|
||||
Variable('vargetter', type=StringType,
|
||||
source=Calculate(lambda chroot: '{} test'.format(chroot.value),
|
||||
'main.chroot'))
|
||||
|
@ -1,4 +1,4 @@
|
||||
from calculate.variables.datavars import Variable, StringType
|
||||
def import_variables():
|
||||
from calculate.variables.datavars import Variable, StringType
|
||||
|
||||
|
||||
Variable('chroot', type=StringType.readonly, source='/')
|
||||
Variable('chroot', type=StringType.readonly, source='/')
|
||||
|
@ -1,19 +1,17 @@
|
||||
import os
|
||||
from calculate.variables.datavars import Variable, ListType, HashType
|
||||
'''
|
||||
system:
|
||||
def import_variables():
|
||||
'''
|
||||
system:
|
||||
env_order -> list
|
||||
env_path -> hash
|
||||
'''
|
||||
'''
|
||||
import os
|
||||
from calculate.variables.datavars import Variable, ListType, HashType
|
||||
|
||||
TESTFILES_PATH = os.path.join(os.getcwd(), 'tests/variables/testfiles')
|
||||
# Список мест, где есть calculate.ini файлы.
|
||||
Variable('env_order', type=ListType, source=['system', 'local'])
|
||||
|
||||
TESTFILES_PATH = os.path.join(os.getcwd(), 'tests/variables/testfiles')
|
||||
|
||||
|
||||
# Список мест, где есть calculate.ini файлы.
|
||||
Variable('env_order', type=ListType, source=['system', 'local'])
|
||||
|
||||
# Отображение множества мест, где есть calculate.ini файлы, на пути к ним.
|
||||
Variable('env_path', type=HashType,
|
||||
# Отображение множества мест, где есть calculate.ini файлы, на пути к ним.
|
||||
Variable('env_path', type=HashType,
|
||||
source={'system': os.path.join(TESTFILES_PATH,
|
||||
'ini_vars/calculate_6.ini')})
|
||||
|
Loading…
Reference in new issue