return result
def build_context(config, logger):
- environ_info = {}
products_list = [ 'KERNEL', 'GUI' ]
- environ_info['products'] = config.APPLICATION.products
ctxenv = src.environment.SalomeEnviron(config,
src.environment.Environ(dict(
os.environ)),
True)
ctxenv.silent = True
- ctxenv.set_full_environ(logger, environ_info)
+ ctxenv.set_full_environ(logger, config.APPLICATION.products.keys())
dicdir = {}
for p in products_list:
"""
undo = False
if directory is not None and directory not in sys.path:
- sys.path.insert(0, dir)
+ sys.path.insert(0, directory)
undo = True
res = None
res = info[1]
except ImportError:
if undo:
- sys.path.remove(dir)
+ sys.path.remove(directory)
res = None
return res
:rtype: boolean
'''
return ("properties" in product_info and
- "generated" in product_info.properties and
- product_info.properties.generated == "yes")
+ "generate" in product_info.properties and
+ product_info.properties.generate == "yes")
def get_product_components(product_info):
'''Get the component list to generate with the product