diff --git a/hptoad.py b/hptoad.py index 6182001..e093cf4 100755 --- a/hptoad.py +++ b/hptoad.py @@ -89,7 +89,7 @@ class Zhobe: if not self._cmd_validator_regexp.match(cmd[0]): return None, "Bad command \"%s\"" % cmd[0] - path = "%s/%s" % (dir_path, self.trim(cmd[0][1:])) + path = os.path.join(dir_path, self.trim(cmd[0][1:])) if not os.access(path, os.F_OK): return None, "\"%s\" does not exist" % path