GateOne
GateOne copied to clipboard
if ENV('PATH') contains invalid path, gateone won't start
should add a check --- a/gateone/core/utils.py +++ b/gateone/core/utils.py @@ -1246,6 +1246,7 @@ def which(binary, path=None): for path in paths: if not os.path.exists(path): continue
-
if not os.path.isdir(path): continue files = os.listdir(path) if binary in files: return os.path.join(path, binary)