mirror of
https://github.com/erg-lang/erg.git
synced 2025-08-03 18:29:00 +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 {
|
||||
let mut path = path.clone();
|
||||
path.pop();
|
||||
if path.ends_with("__pycache__") {
|
||||
path.pop();
|
||||
}
|
||||
if path.parent().is_none() {
|
||||
PathBuf::from(".")
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue