MCPcopy Create free account
hub / github.com/conda/constructor / custom_nsi_insert_from_file

Function custom_nsi_insert_from_file

constructor/winexe.py:66–77  ·  view source on GitHub ↗

Insert NSI script commands from file. Args: filepath (os.PathLike): Path to file Returns: string block of file

(filepath: os.PathLike)

Source from the content-addressed store, hash-verified

64
65
66def custom_nsi_insert_from_file(filepath: os.PathLike) -> str:
67 """Insert NSI script commands from file.
68
69 Args:
70 filepath (os.PathLike): Path to file
71
72 Returns:
73 string block of file
74 """
75 if not filepath:
76 return ""
77 return Path(filepath).read_text()
78
79
80def setup_envs_commands(info, dir_path):

Callers 1

make_nsiFunction · 0.85

Calls 1

read_textMethod · 0.45

Tested by

no test coverage detected