twilio/flask-restful — pull request #211 by AlJohri (2014-03-17 23:35:57+00:00)
Title: Convert to relative imports

Using "flask.ext.restful" within the import creates problems for programs like pyinstaller, py2app, py2exe, or cx-freeze.

These programs freeze the executables and linked python packages in a codebase by recursively checking import statements throughout all dependencies.

Since flask uses redirection from flask.ext.restful to flask_restful, the import statements are not understood unless one explicitly adds a "hidden_import" of flask_restful.

Upon adding this hidden_import, the code works fine, only if relative imports are used within the codebase.

Otherwise, individual hidden_imports must be added for each import, like utils and representations.