codingo / Reconnoitre

A security tool for multithreaded information gathering and service enumeration whilst building directory structures to store results, along with writing out recommendations for further testing.
GNU General Public License v3.0
2.11k stars 456 forks source link

Use relative imports for the lib module #119

Closed Daviey closed 4 years ago

Daviey commented 4 years ago

Previously executing reconnoitre.py from a different directory yielded the following error:

from lib.core.input import CliArgumentParser
ModuleNotFoundError: No module named 'lib.core'

This is because it was trying to import from lib, which is not a python library (or in the pwd).

As per PEP-328, this change switches the imports to relative imports which means that it works from an installed location, but also maintains the previous support of allowing local running.

Fixes codingo/Reconnoitre#118

Signed-off-by: Dave Walker (Daviey) email@daviey.com

codingo commented 4 years ago

Thank-you!

catha-git commented 4 years ago

Thank you! Great job!