Created
September 22, 2017 19:15
-
-
Save aahmed-se/d0511b76d695dd8354805fc146a3d791 to your computer and use it in GitHub Desktop.
Create __init__.py under all folders in a specific directory
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
LOCATION="." | |
FILE_NAME="/__init__.py" | |
for i in $(find $LOCATION -type d); do echo "__import__('pkg_resources').declare_namespace(__name__)" > $i$FILE_NAME; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment