mirror of https://github.com/python/cpython.git
This can now run under unix-Python too. You have to pass the folder
to search on the command line in that case.
This commit is contained in:
parent
ac7cb05415
commit
a4741ffe63
|
@ -19,8 +19,12 @@ def bgenone(dirname, shortname):
|
||||||
def main():
|
def main():
|
||||||
success = []
|
success = []
|
||||||
failure = []
|
failure = []
|
||||||
sys.path.insert(0, ':')
|
sys.path.insert(0, os.curdir)
|
||||||
srcdir = os.path.join(os.path.join(sys.prefix, 'Mac'), 'Modules')
|
if len(sys.argv) > 1:
|
||||||
|
srcdir = sys.argv[1]
|
||||||
|
else:
|
||||||
|
srcdir = os.path.join(os.path.join(sys.prefix, 'Mac'), 'Modules')
|
||||||
|
srcdir = os.path.abspath(srcdir)
|
||||||
contents = os.listdir(srcdir)
|
contents = os.listdir(srcdir)
|
||||||
for name in contents:
|
for name in contents:
|
||||||
moduledir = os.path.join(srcdir, name)
|
moduledir = os.path.join(srcdir, name)
|
||||||
|
|
Loading…
Reference in New Issue