mirror of
https://github.com/python/cpython.git
synced 2025-11-03 03:22:27 +00:00
Lots of things added. README written (mostly).
This commit is contained in:
parent
ca9321e6d0
commit
d8336c2286
4 changed files with 350 additions and 34 deletions
|
|
@ -21,6 +21,7 @@ def findmodules(scriptfile, modules = [], path = sys.path):
|
|||
for name in modules:
|
||||
mod = os.path.basename(name)
|
||||
if mod[-3:] == '.py': mod = mod[:-3]
|
||||
elif mod[-4:] == '.pyc': mod = mod[:-4]
|
||||
todo[mod] = name
|
||||
done = closure(todo)
|
||||
return done
|
||||
|
|
@ -94,7 +95,6 @@ def scanfile(filename):
|
|||
# Return filename, or '<builtin>', or '<unknown>'.
|
||||
|
||||
builtins = sys.builtin_module_names
|
||||
if 'sys' not in builtins: builtins.append('sys')
|
||||
tails = ['.py', '.pyc']
|
||||
|
||||
def findmodule(modname, path = sys.path):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue