Just noticed that I was getting a "string index out of range" error when KMC was already set to my PATH (so I left it as "" in the configuration.json). The reason seems to be that in Utility.py we always run
if pkmc[-1]!="/":
pkmc=pkmc+"/"
if pvelvet[-1]!="/":
pvelvet=pvelvet+"/"
But these only work if the strings are at least length 1. We should probably add a check like pkmc and pkmc[-1] != "/".
Hi,
Just noticed that I was getting a "string index out of range" error when KMC was already set to my PATH (so I left it as "" in the
configuration.json
). The reason seems to be that inUtility.py
we always runBut these only work if the strings are at least length 1. We should probably add a check like
pkmc and pkmc[-1] != "/"
.