piel.cli.utils#

Module Contents#

Functions#

append_to_bashrc_if_does_not_exist(line)

Appends a line to .bashrc if it does not exist.

echo_and_run_subprocess(command, **kwargs)

Runs a subprocess and prints the command.

echo_and_check_subprocess(command, **kwargs)

Runs a subprocess and prints the command. Raises an exception if the subprocess fails.

get_python_install_directory()

Gets the piel installation directory.

get_piel_home_directory()

Gets the piel home directory.

Attributes#

default_openlane2_directory

default_openlane2_directory#
append_to_bashrc_if_does_not_exist(line: str)[source]#

Appends a line to .bashrc if it does not exist.

Parameters:

line

Returns:

echo_and_run_subprocess(command: list, **kwargs)[source]#

Runs a subprocess and prints the command.

Parameters:
  • command

  • **kwargs

Returns:

echo_and_check_subprocess(command: list, **kwargs)[source]#

Runs a subprocess and prints the command. Raises an exception if the subprocess fails.

Parameters:
  • command

  • **kwargs

Returns:

get_python_install_directory()[source]#

Gets the piel installation directory.

Returns:

The piel installation directory.

Return type:

pathlib.Path

get_piel_home_directory()[source]#

Gets the piel home directory.

Returns:

The piel home directory.

Return type:

pathlib.Path