mirror of
https://github.com/erg-lang/erg.git
synced 2025-10-01 05:11:09 +00:00
Update io.rs
This commit is contained in:
parent
a2d1809cee
commit
360c381b34
1 changed files with 3 additions and 0 deletions
|
@ -97,6 +97,9 @@ impl InputKind {
|
||||||
if let Self::File(path) = self {
|
if let Self::File(path) = self {
|
||||||
let mut path = path.clone();
|
let mut path = path.clone();
|
||||||
path.pop();
|
path.pop();
|
||||||
|
if path.ends_with("__pycache__") {
|
||||||
|
path.pop();
|
||||||
|
}
|
||||||
if path.parent().is_none() {
|
if path.parent().is_none() {
|
||||||
PathBuf::from(".")
|
PathBuf::from(".")
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue