]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Lawrence Hudson, SF #401702: Modify co_filename in frozen programs
authorGuido van Rossum <guido@python.org>
Tue, 20 Mar 2001 20:43:34 +0000 (20:43 +0000)
committerGuido van Rossum <guido@python.org>
Tue, 20 Mar 2001 20:43:34 +0000 (20:43 +0000)
commit6b767ac81aba6e51f9a84efe44d31a1db1e1edba
treec22c5455415a6f1e2b1b1757ac90aa271bd34ced
parentb845cb0946a278a1f4bf5710d471b90a18e688d5
Lawrence Hudson, SF #401702: Modify co_filename in frozen programs

  This patch was developed primarily to reduce the size of the
  frozen binary.  It is particularly useful when freezing for 'small'
  platforms, such as Palm OS, where you really want to save that
  last miserable byte.

  A limitation of this patch is that it does not provide any feedback
  about the replacements being made.  As the path matching
  is case-sensitive this may lead to unexpected behaviour for DOS
  and Windows people, eg
      > freeze.py -r C:\Python\Lib\=py\ goats.py
  should probably be:
      > freeze.py -r c:\python\lib\=py\ goats.py
Tools/freeze/freeze.py
Tools/freeze/modulefinder.py