[ https://issues.apache.org/jira/browse/THRIFT-1697?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15122443#comment-15122443 ]
Jens Geyer commented on THRIFT-1697: ------------------------------------ [~eaguayo], does the patch solve the issue for you? Any comments to it? > Generate *explicit* relative imports in Python, rather than implicit ones > ------------------------------------------------------------------------- > > Key: THRIFT-1697 > URL: https://issues.apache.org/jira/browse/THRIFT-1697 > Project: Thrift > Issue Type: Improvement > Components: Python - Compiler > Reporter: Alex Gaynor > Attachments: thrift-1697-python-relative-imports.2.patch, > thrift-1697-python-relative-imports.patch > > > Currently the compiler generates code that looks like: > import ttypes > Which relies on the implicit import machinery to load the module in the same > directory. > It would be much better to use > from . import ttypes -- This message was sent by Atlassian JIRA (v6.3.4#6332)