SaintsSec / Navi

An Interface for AI built for cybersecurity professionals
https://www.saintssec.org/
GNU Affero General Public License v3.0
84 stars 9 forks source link

Navi wont register files in its directory unless you launch from the directory. #5

Closed AlexKollar closed 1 year ago

AlexKollar commented 1 year ago

As of present if you launch navi from anywhere in the command line it will not let you use custom / commands as it does not register the file being in the directory you launched from.

Will be working on proper install script in the next few days.

For now the alias to get it to run properly is: alias navi = cd ~/git/Navi/NaviCode && python3 main.py

marvhus commented 1 year ago

use this:

os.path.abspath(os.path.dirname(__file__))

though you should probably find a better way to do it than what you are doing now: https://github.com/SSGorg/Navi/blob/main/NaviCode/main.py#L34

you can do this in python without launching a sub-process... so why do it that way?

AlexKollar commented 1 year ago

By all mean you are more than welcome to dig in as well. @marvhus im actually shocked it got as far as it did.

I'm trying to get it that I can run commands without GPT spitting output it thinks is relevant to the command issued.

marvhus commented 1 year ago

Fixed in #7