damnever / pigar

:coffee: A tool to generate requirements.txt for Python project, and more than that. (IT IS NOT A PACKAGE MANAGEMENT TOOL)
https://damnever.github.io/pigar/
BSD 3-Clause "New" or "Revised" License
1.61k stars 90 forks source link

Imports which are in "if" conditions aren't added #173

Closed f1refa11 closed 12 months ago

f1refa11 commented 12 months ago

Describe the bug A clear and concise description of what the bug is. for example:

if coolVar:
   from foo import bar

doesn't work, the foo is not included

To Reproduce Steps to reproduce the behavior:

  1. Setup directories and files..
  2. Install pigar..
  3. Run pigar..
  4. See error..

Expected behavior added import

Context (Environment)

Additional context Add any other context about the problem here.

pigar -l DEBUG [command] will give you debug level logs.

f1refa11 commented 12 months ago

bruh nvm it works💀