... #orig_path.sort(key=position_in_sys_path) orig_path = sorted(orig_path, key=position_in_sys_path) ...
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* At run-time deserialization of a protobuf buffer to a C++ object example | |
* Based on https://cxwangyi.wordpress.com/2010/06/29/google-protocol-buffers-online-parsing-of-proto-file-and-related-data-files/ | |
* @author: Floris Van den Abeele <[email protected]> | |
* | |
* Starting from a protobuf definition, main() does the following: | |
* 1) Translate protobuf definition to FileDescriptorProto object using the | |
* Parser from protoc. FileDescriptorProto seems to be nothing more than an | |
* in-memory representation of the proto definition. | |
* 2) Use a DescriptorPool to construct a FileDescriptor. FileDescriptor | |
* seems to contain all necessary meta data to describe all the members of a |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Protocol Buffers - Google's data interchange format | |
# Copyright 2008 Google Inc. All rights reserved. | |
# https://developers.google.com/protocol-buffers/ | |
# | |
# Redistribution and use in source and binary forms, with or without | |
# modification, are permitted provided that the following conditions are | |
# met: | |
# | |
# * Redistributions of source code must retain the above copyright | |
# notice, this list of conditions and the following disclaimer. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#orig_path.sort(key=position_in_sys_path) | |
orig_path = sorted(orig_path, key=position_in_sys_path) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
LP_server |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
LP_server |