Use os.path.join() instead of concatenating manually

This commit is contained in:
Alexei Sorokin 2016-08-24 17:20:19 +03:00
parent 3bb0824e75
commit 938709465c
1 changed files with 1 additions and 1 deletions

View File

@ -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