damnever / pigar

:coffee: A tool to generate requirements.txt for Python project, and more than that. (IT IS NOT A PACKAGE MANAGEMENT TOOL)

Home Page:https://damnever.github.io/pigar/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Sort files in _search_path

vishalsrao opened this issue · comments

It may be better if files are read in sorted order in _search_path. This could help get the latest version when there are multiple versions of the same library.

Change:
for file in os.listdir(path)
to
for file in sorted(os.listdir(path))

The v2 has changed lots of code, feel free to open another issue.