blob: 38b7fbc4e694a3966702b2360902caed7f52f047 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
#!/bin/sh
# Copyright 2007 Nanorex, Inc. See LICENSE file for details.
# A little utility for figuring out what order python files are
# loaded. Run this on all .py files you're interested in.
#
# Try:
# AddImportPrint `find . -name \*.py -print`
#
# Then run them. They'll print the order that they're loaded.
#
# Best done in a seperate cvs working tree that you can just throw away.
for i in $*; do
echo $i
sed '2,$d' < $i > tmp$$
echo print '"now importing' $i '"' >> tmp$$
sed '1d' < $i >> tmp$$
mv tmp$$ $i
done
|