venvmod.commands.create_module module

venvmod.commands.create_module.initialize(virtual_env: Optional[pathlib.Path] = None, version_or_path: str = '5.2.0') int[source]

Initialize a venv-modulefile environment

Parameters
  • virtual_env (Path, optional) – If None, arguments are read from venvmod.commands.get_parser() function, else the path to the virtual env, by default None

  • version_or_path (str, optional) – Modulefile version to use if not found or version < 4.6. It can be a source directory to avoid donloading, by default “5.2.0”

Returns

return code

Return type

int

venvmod.commands.create_module.add_appli(virtual_env: Optional[pathlib.Path] = None, applis: Optional[List[str]] = None)[source]

Add application modulefiles to the environment.

This call also use the venvmod.commands.append_module.read_env() function for each appli.

Parameters
  • virtual_env (Path, optional) – If None, arguments are read from venvmod.commands.get_parser() function, else the path to the virtual env, by default None

  • applis (List[str], optional) – List of module file to create in addition to those given through cli, by default None