build script: append separator to source path before target detection

This commit is contained in:
alexey.lysiuk 2021-01-09 11:36:38 +02:00
parent 0d1217970a
commit 562c4b5343

View file

@ -1831,10 +1831,10 @@ class Builder(object):
if arguments.target: if arguments.target:
self.target = self.targets[arguments.target] self.target = self.targets[arguments.target]
self.source_path = self.root_source_path + self.target.name self.source_path = self.root_source_path + self.target.name + os.sep
else: else:
assert arguments.source_path assert arguments.source_path
self.source_path = arguments.source_path self.source_path = arguments.source_path + os.sep
self._detect_target() self._detect_target()
if not self.build_path: if not self.build_path:
@ -1844,7 +1844,6 @@ class Builder(object):
if not self.output_path: if not self.output_path:
self.output_path = self.root_path + 'output' self.output_path = self.root_path + 'output'
self.source_path += os.sep
self.build_path += os.sep self.build_path += os.sep
self.output_path += os.sep self.output_path += os.sep
self.native_build_path = self.build_path self.native_build_path = self.build_path