]> granicus.if.org Git - python/commit
Added 'script_name' and 'script_args' instance attributes to Distribution.
authorGreg Ward <gward@python.net>
Tue, 29 Aug 2000 01:15:18 +0000 (01:15 +0000)
committerGreg Ward <gward@python.net>
Tue, 29 Aug 2000 01:15:18 +0000 (01:15 +0000)
commit9821bf4e62bcb7d503aed782a8f6398e5de720af
tree4727c267ef2488568ee3d8bb945c592d9c61c16e
parent31f182e830db13c3edbe12e58f9c737cc21583fa
Added 'script_name' and 'script_args' instance attributes to Distribution.
Changed 'core.setup()' so it sets them to reasonable defaults.
Tweaked how the "usage" string is generated: 'core' now provides
  'gen_usage()', which is used instead of 'USAGE'.
Modified "build_py" and "sdist" commands to refer to
  'self.distribution.script_name' rather than 'sys.argv[0]'.
Lib/distutils/command/build_py.py
Lib/distutils/command/sdist.py
Lib/distutils/core.py
Lib/distutils/dist.py