|
◆ write_runtime()
fhs.write_runtime |
( |
|
name = None , |
|
|
|
text = True , |
|
|
|
dir = False , |
|
|
|
opened = True , |
|
|
|
packagename = None |
|
) |
| |
Open a runtime file for writing.
- Parameters
-
name | Filename to open. Defaults to the program name. |
text | If True (the default), open the file in text mode. This parameter is ignored if the file is not opened. |
dir | If True, create a directory instead of a file. Defaults to False. |
opened | If True (the default), return the open file. For directories, the target is not created if this is set to False. |
packagename | Override the packagename. |
- Returns
- The opened file, or the file or directory name.
Definition at line 812 of file fhs.py.
|