This repository has been archived by the owner on Jul 11, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 155
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add package prefix to imports in generated code (#313)
* Add package prefix to imports in generated code Packages generated with thrift refers to each other as if they are top level packages. This prevents imports from working when generated packages are placed inside some other package. Currently jaeger_client relies on hacking sys.path, but this doesn't work properly if the library is packed inside an application built using PyInstaller. Another way to get imports to work is to rewrite them after generation. This can be done easily since the build process already involves an awk script that performs a couple of replacements. Signed-off-by: Andrey Nikitin <[email protected]> * Remove unused import Signed-off-by: Andrey Nikitin <[email protected]>
- Loading branch information
Showing
5 changed files
with
11 additions
and
14 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains 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