Explorar o código

Merge pull request #336 from atupal/patch-1

fix the code error
Mike Naberezny %!s(int64=11) %!d(string=hai) anos
pai
achega
b84846c5ec
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      supervisor/medusa/filesys.py

+ 1 - 1
supervisor/medusa/filesys.py

@@ -185,7 +185,7 @@ class os_filesystem:
         # path components, and do it safely.
         # <real_root>/<current_directory>/<path>
         # use the operating system's path separator.
-        path.split('/').join(os.sep)
+        path = os.sep.join(path.split('/'))
         p = self.normalize (self.path_module.join (self.wd, path))
         p = self.normalize (self.path_module.join (self.root, p[1:]))
         return p