Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Record files don't always include directories so find eggdir by looking ... #2076
Here's a question, this is probably me being overly paranoid but do we need to look for a filename inside it instead of just any file inside it?
if os.path.basename(os.path.dirname(line)).endswith(".egg-info"): egg_info_dir = prepend_root(os.path.dirname(line))
I think this would work similarly to what you have, but it only relies on there being any file inside of the egg-info directory, not a particularly named file.