mirror of
https://github.com/RustPython/RustPython.git
synced 2026-10-28 18:59:04 +08:00
Add nt constants (#5676)
This commit is contained in:
1 parent
3c6bc2cf9f
commit
861055f558
1 file changed
+7
-1
+7
-1
@@ -37,7 +37,13 @@ pub(crate) mod module {
|
||||
use libc::{O_BINARY, O_TEMPORARY};
|
||||
|
||||
#[pyattr]
|
||||
const _LOAD_LIBRARY_SEARCH_DEFAULT_DIRS: i32 = 4096;
|
||||
use windows_sys::Win32::System::LibraryLoader::{
|
||||
LOAD_LIBRARY_SEARCH_APPLICATION_DIR as _LOAD_LIBRARY_SEARCH_APPLICATION_DIR,
|
||||
LOAD_LIBRARY_SEARCH_DEFAULT_DIRS as _LOAD_LIBRARY_SEARCH_DEFAULT_DIRS,
|
||||
LOAD_LIBRARY_SEARCH_DLL_LOAD_DIR as _LOAD_LIBRARY_SEARCH_DLL_LOAD_DIR,
|
||||
LOAD_LIBRARY_SEARCH_SYSTEM32 as _LOAD_LIBRARY_SEARCH_SYSTEM32,
|
||||
LOAD_LIBRARY_SEARCH_USER_DIRS as _LOAD_LIBRARY_SEARCH_USER_DIRS,
|
||||
};
|
||||
|
||||
#[pyfunction]
|
||||
pub(super) fn access(path: OsPath, mode: u8, vm: &VirtualMachine) -> PyResult<bool> {
|
||||
|
||||
Reference in new issue
Block a user