This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Arfrever
Recipients Arfrever, barry
Date 2010-04-25.01:33:53
SpamBayes Score 0.0017675109
Marked as misclassified No
Message-id <1272159236.82.0.290282900197.issue8527@psf.upfronthosting.co.za>
In-reply-to
Content
compileall.compile_dir() called multiple times creates empty __pycache__/__pycache__ subdirectories. I'm attaching the patch.

$ mkdir test
$ touch test/__init__.py
$ python3.2 -c 'import compileall; compileall.compile_dir("test")'
Listing test ...
Compiling test/__init__.py ...
$ tree test
test
├── __init__.py
└── __pycache__
    └── __init__.cpython-32.pyc

1 directory, 2 files
$ python3.2 -c 'import compileall; compileall.compile_dir("test")'
Listing test ...
Listing test/__pycache__ ...
$ tree test
test
├── __init__.py
└── __pycache__
    ├── __init__.cpython-32.pyc
    └── __pycache__

2 directories, 2 files
History
Date User Action Args
2010-04-25 01:33:57Arfreversetrecipients: + Arfrever, barry
2010-04-25 01:33:56Arfreversetmessageid: <1272159236.82.0.290282900197.issue8527@psf.upfronthosting.co.za>
2010-04-25 01:33:54Arfreverlinkissue8527 messages
2010-04-25 01:33:54Arfrevercreate