1.1 --- a/javaclass/classhook.py Thu Mar 24 00:54:11 2011 +0100
1.2 +++ b/javaclass/classhook.py Thu Mar 24 00:58:05 2011 +0100
1.3 @@ -1,5 +1,24 @@
1.4 #!/usr/bin/env python
1.5
1.6 +"""
1.7 +An import hook for class files.
1.8 +
1.9 +Copyright (C) 2004, 2005, 2006, 2011 Paul Boddie <paul@boddie.org.uk>
1.10 +
1.11 +This program is free software; you can redistribute it and/or modify it under
1.12 +the terms of the GNU Lesser General Public License as published by the Free
1.13 +Software Foundation; either version 3 of the License, or (at your option) any
1.14 +later version.
1.15 +
1.16 +This program is distributed in the hope that it will be useful, but WITHOUT
1.17 +ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
1.18 +FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
1.19 +details.
1.20 +
1.21 +You should have received a copy of the GNU Lesser General Public License along
1.22 +with this program. If not, see <http://www.gnu.org/licenses/>.
1.23 +"""
1.24 +
1.25 import ihooks # for the import machinery
1.26 import os, glob # for getting suitably-named files
1.27 from imp import PY_SOURCE, PKG_DIRECTORY, C_BUILTIN # import machinery magic