Merge pull request #1022 from gaphor/packaging/fix-double-semicolon

Fix parameter is incorrect error with ";;" in path
This commit is contained in:
Arjan Molenaar 2021-09-24 09:29:57 +02:00 committed by GitHub
commit 82ddc00781
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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():