|
|
◆ read_runtime()
| fhs.read_runtime |
( |
| name = None, |
|
|
| text = True, |
|
|
| dir = False, |
|
|
| opened = True, |
|
|
| packagename = None ) |
Open a runtime file for reading.
- 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, find a directory instead of a file. Defaults to False. |
| opened | If True (the default), return the open file. For directories, this is ignored. |
| packagename | Override the packagename. |
- Returns
- The opened file, or the file or directory name.
Definition at line 826 of file fhs.py.
|