From 73ae4730d0972a0d1772ef76d17659df75a9b748 Mon Sep 17 00:00:00 2001 From: blueloveTH Date: Wed, 1 Feb 2023 16:21:03 +0800 Subject: [PATCH] Update main.cpp --- src/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.cpp b/src/main.cpp index 1a18ecb7..bb3fe5bf 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -49,7 +49,7 @@ int main(int argc, char** argv){ std::string src((std::istreambuf_iterator(file)), std::istreambuf_iterator()); 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); });