mirror of
https://github.com/erg-lang/erg.git
synced 2025-09-29 12:24:45 +00:00
Add zipfile
module
This commit is contained in:
parent
1c2014f7ca
commit
48eb3c5920
2 changed files with 14 additions and 2 deletions
|
@ -6,7 +6,7 @@ use std::process::Command;
|
|||
use crate::serialize::get_magic_num_from_bytes;
|
||||
|
||||
#[cfg(unix)]
|
||||
pub const BUILTIN_PYTHON_MODS: [&str; 16] = [
|
||||
pub const BUILTIN_PYTHON_MODS: [&str; 17] = [
|
||||
"glob",
|
||||
"http",
|
||||
"importlib",
|
||||
|
@ -23,9 +23,10 @@ pub const BUILTIN_PYTHON_MODS: [&str; 16] = [
|
|||
"tarfile",
|
||||
"time",
|
||||
"urllib",
|
||||
"zipfile",
|
||||
];
|
||||
#[cfg(not(unix))]
|
||||
pub const BUILTIN_PYTHON_MODS: [&str; 15] = [
|
||||
pub const BUILTIN_PYTHON_MODS: [&str; 16] = [
|
||||
"glob",
|
||||
"http",
|
||||
"importlib",
|
||||
|
@ -41,6 +42,7 @@ pub const BUILTIN_PYTHON_MODS: [&str; 15] = [
|
|||
"tarfile",
|
||||
"time",
|
||||
"urllib",
|
||||
"zipfile",
|
||||
];
|
||||
|
||||
pub fn which_python() -> String {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue