mirror of
https://github.com/pocketpy/pocketpy
synced 2025-10-21 12:00:18 +00:00
Update main.cpp
This commit is contained in:
parent
4577129575
commit
73ae4730d0
@ -49,7 +49,7 @@ int main(int argc, char** argv){
|
||||
std::string src((std::istreambuf_iterator<char>(file)), std::istreambuf_iterator<char>());
|
||||
PyVarOrNull ret = nullptr;
|
||||
|
||||
if(filename[0] != '_'){
|
||||
if(filename.find("1.py") != std::string::npos || filename.find("2.py") != std::string::npos){
|
||||
Timer("Running time").run([&]{
|
||||
ret = vm->exec(src.c_str(), filename, EXEC_MODE);
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user