mirror of
https://gitee.com/Lyon1998/pikapython.git
synced 2025-01-29 17:22:56 +08:00
not print warning when found *.py
This commit is contained in:
parent
833036d435
commit
a725a4c0f5
@ -1,6 +1,7 @@
|
||||
import Arm2D
|
||||
import PikaStdLib
|
||||
import ctypes
|
||||
import module
|
||||
|
||||
line = Arm2D.Line()
|
||||
res = line.on()
|
||||
|
0
tools/pikaCompiler/module.py
Normal file
0
tools/pikaCompiler/module.py
Normal file
@ -85,10 +85,18 @@ impl Compiler {
|
||||
let mut file = match file {
|
||||
Ok(file) => file,
|
||||
Err(_) => {
|
||||
println!(
|
||||
" [warning]: file: '{}{}.pyi' no found",
|
||||
self.source_path, file_name
|
||||
);
|
||||
/* if *.py exits, not print warning */
|
||||
let file_py = Compiler::open_file(format!("{}{}.py", self.source_path, file_name));
|
||||
match file_py {
|
||||
Ok(file) => file,
|
||||
Err(_) => {
|
||||
println!(
|
||||
" [warning]: file: '{}{}.pyi' no found",
|
||||
self.source_path, file_name
|
||||
);
|
||||
return self;
|
||||
}
|
||||
};
|
||||
return self;
|
||||
}
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user