Insert NSI script commands from file. Args: filepath (os.PathLike): Path to file Returns: string block of file
(filepath: os.PathLike)
| 64 | |
| 65 | |
| 66 | def 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 | |
| 80 | def setup_envs_commands(info, dir_path): |