From 7b27c6754406b3ea7f3b18836f2c790bb1ad7d2f Mon Sep 17 00:00:00 2001 From: blueloveTH Date: Thu, 16 Mar 2023 16:48:24 +0800 Subject: [PATCH] Update io.h --- src/io.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/io.h b/src/io.h index 9f24435f..fff75fe0 100644 --- a/src/io.h +++ b/src/io.h @@ -114,6 +114,14 @@ void add_module_os(VM* vm){ if(!ok) vm->IOError("operation failed"); return vm->None; }); + + vm->bind_func<-1>(mod, "path_join", [](VM* vm, const Args& args){ + std::filesystem::path path; + for(int i=0; i