Any other answer would just add the exe to the current python session's path, and only "setx" would add it to USER path (erasing previous ones unless u save them somewhere).
I'm currently using cx_freeze, and there is an option to add to system path for the .msi builder and not the .exe builder. My goal is to have the exe be lightweight and at the same time be accessible from anywhere. I'm also planning to make it universal so it would work both on windows and linux I tried using
os.environ['PATH'] = os.environ['PATH'] += os.pathsep(directory)
But that would only edit it for that current python session.