Change the separator used in rust path into os.path.join

This commit is contained in:
tp6vup54 2016-08-22 23:32:02 +08:00
parent 91cee66fe8
commit 55af3e3c27

View file

@ -286,9 +286,9 @@ class CommandBase(object):
def rust_path(self):
version = self.rust_version()
if self._use_stable_rust:
return "%s/rustc-%s-%s" % (version, version, host_triple())
return os.path.join(version, "rustc-%s-%s" % (version, host_triple()))
else:
return "%s/rustc-nightly-%s" % (version, host_triple())
return os.path.join(version, "rustc-nightly-%s" % (host_triple()))
def rust_version(self):
if self._rust_version is None or self._use_stable_rust != self._rust_version_is_stable: