def get_relative_path(self, path):
if path.startswith("//"): # project relative
return posixpath.relpath(self.get_absolute_path(path),
self.get_absolute_build_path())
else:
return path # absolute, just return the path
评论列表
文章目录