| 238 | |
| 239 | #ifdef LFS_DEV_PYTHON_SOURCE_DIR |
| 240 | void prepend_dev_python_source_path(PyObject* const sys_path) { |
| 241 | const auto source_dir = lfs::core::utf8_to_path(LFS_DEV_PYTHON_SOURCE_DIR); |
| 242 | std::error_code ec; |
| 243 | if (!std::filesystem::exists(source_dir / "lfs_plugins", ec)) { |
| 244 | LOG_WARN("Python dev source path is unavailable: {}", |
| 245 | lfs::core::path_to_utf8(source_dir)); |
| 246 | return; |
| 247 | } |
| 248 | |
| 249 | prepend_sys_path_once(sys_path, source_dir, "dev source Python dir"); |
| 250 | } |
| 251 | |
| 252 | void start_dev_python_watcher(PyObject* const lfs_plugins) { |
| 253 | if (!env_flag_enabled("LFS_PYTHON_HOT_RELOAD", true)) { |
no test coverage detected