Fix parameter is incorrect error with ";;" in path

This commit is contained in:
Dan Yeaw 2021-09-22 21:55:50 -04:00
parent 906e3ac1ab
commit 9923ff0b5f
No known key found for this signature in database
GPG Key ID: 42239C515C9B9841

View File

@ -29,6 +29,9 @@ def make_gaphor_script():
file.write("if os.environ['PATH'][-1] == ';':\n")
file.write(" os.environ['PATH'] = os.environ['PATH'][:-1]\n")
# Check for and remove two semicolons in path
file.write("os.environ['PATH'] = os.environ['PATH'].replace(';;', ';')\n")
plugins = toml["tool"]["poetry"]["plugins"]
for cat in plugins.values():
for entrypoint in cat.values():