Closed AlexKollar closed 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?
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.
Fixed in #7
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