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

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

f1refa11 opened this issue · comments

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)

  • OS: Windows 10
  • Version of Python: 3.9
  • Version of pigar: latest

Additional context
Add any other context about the problem here.

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

bruh nvm it works💀