Permalink
Browse files

Added py-init script

  • Loading branch information...
1 parent 4ae3d04 commit 9f0ff63eba68156f4ca0e5ddeed909c9cee9d3e0 @dcramer committed Feb 3, 2012
Showing with 14 additions and 0 deletions.
  1. +14 −0 bin/py-init
View
@@ -0,0 +1,14 @@
+#!/bin/sh
+
+# Usage: py-init
+# py-init [directory]
+#
+# Creates __init__.py files in all subdirectories.
+
+set -e
+
+DIR="$@"
+
+test -z "$DIR" && DIR=.
+
+find $DIR -type d | xargs -I{} touch {}/__init__.py

0 comments on commit 9f0ff63

Please sign in to comment.