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