コード例 #1
0
	def __init__(self, toolchain : ToolMixIn):
		ToolMixIn.__init__(
			self, toolchain._platform, toolchain._dryrun, toolchain._binaryDirectoryPath, toolchain._version,
			toolchain._logger)

		if (self._platform == "Windows"):    executablePath = self._binaryDirectoryPath / "vivado.bat"
		elif (self._platform == "Linux"):    executablePath = self._binaryDirectoryPath / "vivado"
		else:                                            raise PlatformNotSupportedException(self._platform)
		super().__init__(self._platform, self._dryrun, executablePath, environment=toolchain._environment, logger=self._logger)

		self.Parameters[self.Executable] = executablePath
コード例 #2
0
    def __init__(self, toolchain: ToolMixIn):
        ToolMixIn.__init__(self, toolchain._platform, toolchain._dryrun,
                           toolchain._binaryDirectoryPath, toolchain._version,
                           toolchain._logger)

        if (self._platform == "Windows"):
            executablePath = self._binaryDirectoryPath / "vsimsa.exe"
        else:
            raise PlatformNotSupportedException(self._platform)
        super().__init__(self._platform,
                         self._dryrun,
                         executablePath,
                         logger=self._logger)

        self.Parameters[self.Executable] = executablePath