/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to tools/package_mf.py

  • Committer: Alexander Belchenko
  • Date: 2008-02-06 15:33:12 UTC
  • mto: This revision was merged to the branch mainline in revision 3231.
  • Revision ID: bialix@ukr.net-20080206153312-qycs7u05d7fjtwqq
Ian's review

Show diffs side-by-side

added added

removed removed

Lines of Context:
12
12
#
13
13
# You should have received a copy of the GNU General Public License
14
14
# along with this program; if not, write to the Free Software
15
 
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
 
15
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
16
16
 
17
17
"""Custom module finder for entire package"""
18
18
 
 
19
import glob
19
20
import modulefinder
20
21
import os
21
22
import sys
31
32
 
32
33
    def __init__(self, path=None, debug=0, excludes=[], replace_paths=[]):
33
34
        if path is None:
34
 
            path = [os.path.dirname(os.__file__)]    # only python std lib
 
35
            path = [os.path.join(sys.prefix, 'Lib')]    # only python std lib
35
36
        modulefinder.ModuleFinder.__init__(self, path, debug, excludes,
36
37
            replace_paths)
37
38