diff --git a/docs/modules/os.md b/docs/modules/os.md index ecfa6612..0e1601a6 100644 --- a/docs/modules/os.md +++ b/docs/modules/os.md @@ -23,10 +23,6 @@ Returns a list of files and directories in the given path. Removes the file at the given path. -### `os.system(command: str) -> int` - -Executes the given command in the system shell. - ### `os.mkdir(path: str)` Creates a directory at the given path. @@ -45,4 +41,4 @@ Check if the given path exists. ### `os.path.basename(path: str)` -Returns the basename of the given path. \ No newline at end of file +Returns the basename of the given path. diff --git a/src/io.cpp b/src/io.cpp index f7bee4b9..3d83acdb 100644 --- a/src/io.cpp +++ b/src/io.cpp @@ -136,15 +136,6 @@ void add_module_os(VM* vm){ return vm->None; }); -#if PK_SYS_PLATFORM != 2 - // system - vm->bind_func<1>(mod, "system", [](VM* vm, ArgsView args){ - std::string cmd = CAST(Str&, args[0]).str(); - int ret = system(cmd.c_str()); - return VAR(ret); - }); -#endif - vm->bind_func<1>(mod, "listdir", [](VM* vm, ArgsView args){ std::filesystem::path path(CAST(Str&, args[0]).sv()); std::filesystem::directory_iterator di;