~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to tools/package_mf.py

  • Committer: Alexander Belchenko
  • Date: 2008-02-07 07:53:19 UTC
  • mto: This revision was merged to the branch mainline in revision 3231.
  • Revision ID: bialix@ukr.net-20080207075319-d9jj7as8i5ztiff7
some cleanup in package_mf.py; mention about load_from_zip() deprecation in NEWS.

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
 
17
17
"""Custom module finder for entire package"""
18
18
 
19
 
import glob
20
19
import modulefinder
21
20
import os
22
21
import sys
32
31
 
33
32
    def __init__(self, path=None, debug=0, excludes=[], replace_paths=[]):
34
33
        if path is None:
35
 
            path = [os.path.join(sys.prefix, 'Lib')]    # only python std lib
 
34
            path = [os.path.dirname(os.__file__)]    # only python std lib
36
35
        modulefinder.ModuleFinder.__init__(self, path, debug, excludes,
37
36
            replace_paths)
38
37