Disable the pwd module on android

This commit is contained in:
coolreader18 committed 2019-06-07 11:57:50 -05:00
1 parent d27840c11d
commit 50252b4e80
2 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -38,5 +38,5 @@ bincode = "1.1.4"
git = "https://github.com/OddCoincidence/unicode-casing"
rev = "90d6d1f02b9cc04ffb55a5f1c3fa1455a84231fb"
[target.'cfg(unix)'.dependencies]
[target.'cfg(all(unix, not(target_os = "android")))'.dependencies]
pwd = "1"
+2 -2
View File
@@ -26,7 +26,7 @@ use crate::vm::VirtualMachine;
pub mod io;
#[cfg(not(target_arch = "wasm32"))]
mod os;
#[cfg(unix)]
#[cfg(all(unix, not(target_os = "android")))]
mod pwd;
use crate::pyobject::PyObjectRef;
@@ -67,7 +67,7 @@ pub fn get_module_inits() -> HashMap<String, StdlibInitFunc> {
}
// Unix-only
#[cfg(unix)]
#[cfg(all(unix, not(target_os = "android")))]
{
modules.insert("pwd".to_string(), Box::new(pwd::make_module));
}