[python] Add uv/poetry to Path on Windows

(cherry picked from commit 308f4606546afabfc0d2d0d427b1cd47a211b046)

IJ-MR-153304

GitOrigin-RevId: 1a1b20f48a9bb473171c8bed2f1c03d3676060a5
This commit is contained in:
Egor.Eliseev
2025-01-21 13:00:32 +02:00
committed by intellij-monorepo-bot
parent 029f434232
commit 641e64e910

View File

@@ -409,6 +409,7 @@ class Installer:
new_path = "{current_path};{new_path}".format(current_path=current_path, new_path=self.bin_dir)
os.environ['PATH'] = new_path
subprocess.run("setx PATH {new_path}".format(new_path=new_path), shell=True)
subprocess.run('$env:Path = "{package_path};$env:Path"'.format(package_path=self.bin_dir), shell=True)
self._write(
POST_MESSAGE.format(