We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3c6bc2c commit 861055fCopy full SHA for 861055f
vm/src/stdlib/nt.rs
@@ -37,7 +37,13 @@ pub(crate) mod module {
37
use libc::{O_BINARY, O_TEMPORARY};
38
39
#[pyattr]
40
- const _LOAD_LIBRARY_SEARCH_DEFAULT_DIRS: i32 = 4096;
+ use windows_sys::Win32::System::LibraryLoader::{
41
+ LOAD_LIBRARY_SEARCH_APPLICATION_DIR as _LOAD_LIBRARY_SEARCH_APPLICATION_DIR,
42
+ LOAD_LIBRARY_SEARCH_DEFAULT_DIRS as _LOAD_LIBRARY_SEARCH_DEFAULT_DIRS,
43
+ LOAD_LIBRARY_SEARCH_DLL_LOAD_DIR as _LOAD_LIBRARY_SEARCH_DLL_LOAD_DIR,
44
+ LOAD_LIBRARY_SEARCH_SYSTEM32 as _LOAD_LIBRARY_SEARCH_SYSTEM32,
45
+ LOAD_LIBRARY_SEARCH_USER_DIRS as _LOAD_LIBRARY_SEARCH_USER_DIRS,
46
+ };
47
48
#[pyfunction]
49
pub(super) fn access(path: OsPath, mode: u8, vm: &VirtualMachine) -> PyResult<bool> {
0 commit comments