Last active
February 9, 2017 11:19
-
-
Save minhoryang/5308674eb766c05f55f52d6f7174dcc5 to your computer and use it in GitHub Desktop.
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
import pkgutil | |
flask.config['CELERY_IMPORTS'] = [ | |
package_name | |
for _, package_name, _ in pkgutil.walk_packages('.') | |
if package_name.startswith('api.tasks.') | |
] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment