1
2

More than 1 year has passed since last update.

[sh][Python] すべてのディレクトリに再帰的に"__init__.py"を作成する

Last updated at Posted at 2023-04-17

Pythonでパッケージ等を作成しているときに、存在するすべてのディレクトリに再帰的に__init__.pyファイルを作成するスクリプト。

find . -name '__pycache__' -prune -o -type d -exec touch {}/__init__.py \;
1
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
2