core.launcher module¶
Launching of programs, folders, URLs, etc..
- core.launcher.get_df_executable()[source]¶
Returns the path of the executable needed to launch Dwarf Fortress.
- core.launcher.open_file(path)[source]¶
Opens a file with the system default viewer for the respective file type.
- Parameters:
path – the file path to open.
- core.launcher.open_folder_idx(i)[source]¶
Opens the folder specified by index i, as listed in PyLNP.json.
- core.launcher.open_link_idx(i)[source]¶
Opens the link specified by index i, as listed in PyLNP.json.
- core.launcher.program_is_running(path, nonchild=False)[source]¶
Returns True if a program is currently running.
- Parameters:
path – the path of the program.
nonchild – if set to True, attempts to check for the process among all running processes, not just known child processes. Used for DFHack on Linux and OS X; currently unsupported for Windows.