Use os.path.join() instead of concatenating manually
This commit is contained in:
parent
3bb0824e75
commit
938709465c
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue