mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-02 04:04:19 +00:00
This commit is contained in:
@@ -403,8 +403,10 @@ bool GeneratePythonGRPC(const Parser &parser, const std::string & /*path*/,
|
||||
namespace_dir += *it;
|
||||
}
|
||||
|
||||
std::string grpc_py_filename =
|
||||
namespace_dir + kPathSeparator + file_name + "_grpc_fb.py";
|
||||
std::string grpc_py_filename = namespace_dir;
|
||||
if (!namespace_dir.empty()) grpc_py_filename += kPathSeparator;
|
||||
grpc_py_filename += file_name + "_grpc_fb.py";
|
||||
|
||||
return flatbuffers::SaveFile(grpc_py_filename.c_str(), code, false);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user